diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-05-15 06:16:10 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-07-12 09:28:05 -0400 |
commit | e176bb05fec4c00450302a75e81f8da3dc9e309e (patch) | |
tree | 85b04f821ceb53f1aaf7289cecc6af0370912559 /arch/arm/mach-pxa/pm.c | |
parent | b23170c01f6e4ea043df7cd9486c2488e01f3d60 (diff) |
[ARM] pxa: move pm_ops structure into CPU specific files
Move the pm_ops structure into the PXA25x and PXA27x support
files. Remove the old pxa_pm_prepare() function, and rename
the both pxa_cpu_pm_prepare() functions as pxa_pm_prepare().
We'll fix that later.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/pm.c')
-rw-r--r-- | arch/arm/mach-pxa/pm.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/arm/mach-pxa/pm.c b/arch/arm/mach-pxa/pm.c index 6d86203aef7b..d439ffa1b071 100644 --- a/arch/arm/mach-pxa/pm.c +++ b/arch/arm/mach-pxa/pm.c | |||
@@ -200,29 +200,3 @@ unsigned long sleep_phys_sp(void *sp) | |||
200 | { | 200 | { |
201 | return virt_to_phys(sp); | 201 | return virt_to_phys(sp); |
202 | } | 202 | } |
203 | |||
204 | /* | ||
205 | * Called after processes are frozen, but before we shut down devices. | ||
206 | */ | ||
207 | int pxa_pm_prepare(suspend_state_t state) | ||
208 | { | ||
209 | extern int pxa_cpu_pm_prepare(suspend_state_t state); | ||
210 | |||
211 | return pxa_cpu_pm_prepare(state); | ||
212 | } | ||
213 | |||
214 | EXPORT_SYMBOL_GPL(pxa_pm_prepare); | ||
215 | |||
216 | static struct pm_ops pxa_pm_ops = { | ||
217 | .prepare = pxa_pm_prepare, | ||
218 | .enter = pxa_pm_enter, | ||
219 | .valid = pm_valid_only_mem, | ||
220 | }; | ||
221 | |||
222 | static int __init pxa_pm_init(void) | ||
223 | { | ||
224 | pm_set_ops(&pxa_pm_ops); | ||
225 | return 0; | ||
226 | } | ||
227 | |||
228 | device_initcall(pxa_pm_init); | ||