diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-04-03 08:15:15 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-08 16:20:05 -0400 |
commit | d50470979090bb5fa6c198d0ef87276658deb5f9 (patch) | |
tree | 7af82cfa3be8b1fed483bbbb27b6cc99628f7ae3 /arch/arm | |
parent | b6269efb146eb8770d753e3dc1c561f1cffb631a (diff) |
ARM: shmobile: pm: fix init sections
Add the __init section for the functions which are called
at init time.
Signed-off-by: Daniel Lezcano <daniel.linaro.org>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-shmobile/cpuidle.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/pm-sh7372.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/cpuidle.c b/arch/arm/mach-shmobile/cpuidle.c index 9e050268cde4..068f9ca8715f 100644 --- a/arch/arm/mach-shmobile/cpuidle.c +++ b/arch/arm/mach-shmobile/cpuidle.c | |||
@@ -36,12 +36,12 @@ static struct cpuidle_driver shmobile_cpuidle_default_driver = { | |||
36 | 36 | ||
37 | static struct cpuidle_driver *cpuidle_drv = &shmobile_cpuidle_default_driver; | 37 | static struct cpuidle_driver *cpuidle_drv = &shmobile_cpuidle_default_driver; |
38 | 38 | ||
39 | void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv) | 39 | void __init shmobile_cpuidle_set_driver(struct cpuidle_driver *drv) |
40 | { | 40 | { |
41 | cpuidle_drv = drv; | 41 | cpuidle_drv = drv; |
42 | } | 42 | } |
43 | 43 | ||
44 | int shmobile_cpuidle_init(void) | 44 | int __init shmobile_cpuidle_init(void) |
45 | { | 45 | { |
46 | struct cpuidle_device *dev = &shmobile_cpuidle_dev; | 46 | struct cpuidle_device *dev = &shmobile_cpuidle_dev; |
47 | 47 | ||
diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c index a0826a48dd08..f6b14cac0076 100644 --- a/arch/arm/mach-shmobile/pm-sh7372.c +++ b/arch/arm/mach-shmobile/pm-sh7372.c | |||
@@ -450,12 +450,12 @@ static struct cpuidle_driver sh7372_cpuidle_driver = { | |||
450 | }, | 450 | }, |
451 | }; | 451 | }; |
452 | 452 | ||
453 | static void sh7372_cpuidle_init(void) | 453 | static void __init sh7372_cpuidle_init(void) |
454 | { | 454 | { |
455 | shmobile_cpuidle_set_driver(&sh7372_cpuidle_driver); | 455 | shmobile_cpuidle_set_driver(&sh7372_cpuidle_driver); |
456 | } | 456 | } |
457 | #else | 457 | #else |
458 | static void sh7372_cpuidle_init(void) {} | 458 | static void __init sh7372_cpuidle_init(void) {} |
459 | #endif | 459 | #endif |
460 | 460 | ||
461 | #ifdef CONFIG_SUSPEND | 461 | #ifdef CONFIG_SUSPEND |