diff options
author | eric miao <eric.miao@marvell.com> | 2008-01-01 19:24:49 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 10:07:54 -0500 |
commit | f79299ca85f6f8c8817bc38494f7caa0a7043c3b (patch) | |
tree | 07aafb1cc4cf5367de52800ea7e01b7c6238c38a /arch/arm/mach-pxa | |
parent | 8785a8fbd5a1624dbabd7c782524450e902b722e (diff) |
[ARM] pxa: clean up pxa{27x,25x}_init_pm() to empty if CONFIG_PM not defined
Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/pxa25x.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c index c6ea0ed69270..962cfbb5500e 100644 --- a/arch/arm/mach-pxa/pxa25x.c +++ b/arch/arm/mach-pxa/pxa25x.c | |||
@@ -239,6 +239,8 @@ static void __init pxa25x_init_pm(void) | |||
239 | { | 239 | { |
240 | pxa_cpu_pm_fns = &pxa25x_cpu_pm_fns; | 240 | pxa_cpu_pm_fns = &pxa25x_cpu_pm_fns; |
241 | } | 241 | } |
242 | #else | ||
243 | static inline void pxa25x_init_pm(void) {} | ||
242 | #endif | 244 | #endif |
243 | 245 | ||
244 | /* PXA25x: supports wakeup from GPIO0..GPIO15 and RTC alarm | 246 | /* PXA25x: supports wakeup from GPIO0..GPIO15 and RTC alarm |
@@ -310,9 +312,9 @@ static int __init pxa25x_init(void) | |||
310 | 312 | ||
311 | if ((ret = pxa_init_dma(16))) | 313 | if ((ret = pxa_init_dma(16))) |
312 | return ret; | 314 | return ret; |
313 | #ifdef CONFIG_PM | 315 | |
314 | pxa25x_init_pm(); | 316 | pxa25x_init_pm(); |
315 | #endif | 317 | |
316 | ret = platform_add_devices(pxa25x_devices, | 318 | ret = platform_add_devices(pxa25x_devices, |
317 | ARRAY_SIZE(pxa25x_devices)); | 319 | ARRAY_SIZE(pxa25x_devices)); |
318 | } | 320 | } |
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index b9fa5ec0a954..f33c9d7ff87e 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -306,6 +306,8 @@ static void __init pxa27x_init_pm(void) | |||
306 | { | 306 | { |
307 | pxa_cpu_pm_fns = &pxa27x_cpu_pm_fns; | 307 | pxa_cpu_pm_fns = &pxa27x_cpu_pm_fns; |
308 | } | 308 | } |
309 | #else | ||
310 | static inline void pxa27x_init_pm(void) {} | ||
309 | #endif | 311 | #endif |
310 | 312 | ||
311 | /* PXA27x: Various gpios can issue wakeup events. This logic only | 313 | /* PXA27x: Various gpios can issue wakeup events. This logic only |
@@ -415,9 +417,9 @@ static int __init pxa27x_init(void) | |||
415 | 417 | ||
416 | if ((ret = pxa_init_dma(32))) | 418 | if ((ret = pxa_init_dma(32))) |
417 | return ret; | 419 | return ret; |
418 | #ifdef CONFIG_PM | 420 | |
419 | pxa27x_init_pm(); | 421 | pxa27x_init_pm(); |
420 | #endif | 422 | |
421 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); | 423 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); |
422 | } | 424 | } |
423 | return ret; | 425 | return ret; |