From 29a7615fb529c8177dd62c96530222aaf8635c9f Mon Sep 17 00:00:00 2001 From: eric miao Date: Wed, 2 Jan 2008 08:24:49 +0800 Subject: [PATCH] --- yaml --- r: 77567 b: refs/heads/master c: f79299ca85f6f8c8817bc38494f7caa0a7043c3b h: refs/heads/master i: 77565: e28d54784c37d5c08bfee798ce259909456a318e 77563: 7e152795bb916d2274fd3e265c207014cfad8c4e 77559: d9477c6fac1ded8502dc8639a531d60d915e89f7 77551: 8a88a15c52e4842c55181b23a2b5773c6eb15a16 77535: 72e7d58a65379334bc2d6cf5889d25369386c0e5 77503: 5a9cc99ac2c357d979b4635bd5cb04c0fd77c388 77439: 52a63ddfe783668445d846579832670b4c6e93fa 77311: 543be86e07eb0441f8dbbcf4b0c165cf0b86482b v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-pxa/pxa25x.c | 6 ++++-- trunk/arch/arm/mach-pxa/pxa27x.c | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index b46abca5a82c..d4dcadf32cea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8785a8fbd5a1624dbabd7c782524450e902b722e +refs/heads/master: f79299ca85f6f8c8817bc38494f7caa0a7043c3b diff --git a/trunk/arch/arm/mach-pxa/pxa25x.c b/trunk/arch/arm/mach-pxa/pxa25x.c index c6ea0ed69270..962cfbb5500e 100644 --- a/trunk/arch/arm/mach-pxa/pxa25x.c +++ b/trunk/arch/arm/mach-pxa/pxa25x.c @@ -239,6 +239,8 @@ static void __init pxa25x_init_pm(void) { pxa_cpu_pm_fns = &pxa25x_cpu_pm_fns; } +#else +static inline void pxa25x_init_pm(void) {} #endif /* PXA25x: supports wakeup from GPIO0..GPIO15 and RTC alarm @@ -310,9 +312,9 @@ static int __init pxa25x_init(void) if ((ret = pxa_init_dma(16))) return ret; -#ifdef CONFIG_PM + pxa25x_init_pm(); -#endif + ret = platform_add_devices(pxa25x_devices, ARRAY_SIZE(pxa25x_devices)); } diff --git a/trunk/arch/arm/mach-pxa/pxa27x.c b/trunk/arch/arm/mach-pxa/pxa27x.c index b9fa5ec0a954..f33c9d7ff87e 100644 --- a/trunk/arch/arm/mach-pxa/pxa27x.c +++ b/trunk/arch/arm/mach-pxa/pxa27x.c @@ -306,6 +306,8 @@ static void __init pxa27x_init_pm(void) { pxa_cpu_pm_fns = &pxa27x_cpu_pm_fns; } +#else +static inline void pxa27x_init_pm(void) {} #endif /* PXA27x: Various gpios can issue wakeup events. This logic only @@ -415,9 +417,9 @@ static int __init pxa27x_init(void) if ((ret = pxa_init_dma(32))) return ret; -#ifdef CONFIG_PM + pxa27x_init_pm(); -#endif + ret = platform_add_devices(devices, ARRAY_SIZE(devices)); } return ret;