From: <far...@us...> - 2006-10-20 18:31:50
|
Revision: 638 http://svn.sourceforge.net/hackndev/?rev=638&view=rev Author: farcaller Date: 2006-10-20 11:31:37 -0700 (Fri, 20 Oct 2006) Log Message: ----------- palmt3: added ifdefs to compile without PM support Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c 2006-10-19 18:47:12 UTC (rev 637) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c 2006-10-20 18:31:37 UTC (rev 638) @@ -175,9 +175,10 @@ }, }; +/*** Suspend/Resume ***/ +#ifdef CONFIG_PM static long int _PM_backup[3]; -/*** Suspend/Resume ***/ void palmt3_suspend(unsigned long ret) { unsigned long * addr; @@ -217,8 +218,8 @@ .suspend = palmt3_suspend, .resume = palmt3_resume, }; +#endif - /*** INIT ***/ static struct platform_device *devices[] __initdata = { @@ -231,7 +232,9 @@ static void __init palmt3_init(void) { set_pxa_fb_info(&palmt3lcd); +#ifdef CONFIG_PM pxa_pm_set_ll_ops(&palmt3_pm_ops); +#endif palmt3_ssp_init(); platform_add_devices (devices, ARRAY_SIZE (devices)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |