diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-06-28 02:22:16 (GMT) |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-06-28 02:26:40 (GMT) |
commit | 48e076dadd0a79047befa539487d8645ded0b7e7 (patch) | |
tree | 64e419bda75c07934bcf1a66708140b706dbac6c /arch/arm/mach-imx/pm-imx27.c | |
parent | c112d2adc32c90ff39ad39feba8c29dcb6008ff6 (diff) | |
download | linux-48e076dadd0a79047befa539487d8645ded0b7e7.tar.xz |
ARM: imx: rework mx27_pm_init() call
mx27_pm_init() uses its own initcall, unlike all of the other
functions like it. Replacing the initcall with a .init_late()
callback makes imx27 more like the others and lets us remove
the last caller of cpu_is_mx27().
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/pm-imx27.c')
-rw-r--r-- | arch/arm/mach-imx/pm-imx27.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-imx/pm-imx27.c b/arch/arm/mach-imx/pm-imx27.c index 43096c8..d943535 100644 --- a/arch/arm/mach-imx/pm-imx27.c +++ b/arch/arm/mach-imx/pm-imx27.c @@ -37,13 +37,7 @@ static const struct platform_suspend_ops mx27_suspend_ops = { .valid = suspend_valid_only_mem, }; -static int __init mx27_pm_init(void) +void __init imx27_pm_init(void) { - if (!cpu_is_mx27()) - return 0; - suspend_set_ops(&mx27_suspend_ops); - return 0; } - -device_initcall(mx27_pm_init); |