summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/cpuidle.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2013-04-03 12:15:15 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-08 22:20:05 +0200
commitd50470979090bb5fa6c198d0ef87276658deb5f9 (patch)
tree7af82cfa3be8b1fed483bbbb27b6cc99628f7ae3 /arch/arm/mach-shmobile/cpuidle.c
parentb6269efb146eb8770d753e3dc1c561f1cffb631a (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/mach-shmobile/cpuidle.c')
-rw-r--r--arch/arm/mach-shmobile/cpuidle.c4
1 files changed, 2 insertions, 2 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 = {
static struct cpuidle_driver *cpuidle_drv = &shmobile_cpuidle_default_driver;
-void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv)
+void __init shmobile_cpuidle_set_driver(struct cpuidle_driver *drv)
{
cpuidle_drv = drv;
}
-int shmobile_cpuidle_init(void)
+int __init shmobile_cpuidle_init(void)
{
struct cpuidle_device *dev = &shmobile_cpuidle_dev;