Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5047097 authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Rafael J. Wysocki
Browse files

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: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b6269efb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -36,12 +36,12 @@ static struct cpuidle_driver shmobile_cpuidle_default_driver = {


static struct cpuidle_driver *cpuidle_drv = &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;
	cpuidle_drv = drv;
}
}


int shmobile_cpuidle_init(void)
int __init shmobile_cpuidle_init(void)
{
{
	struct cpuidle_device *dev = &shmobile_cpuidle_dev;
	struct cpuidle_device *dev = &shmobile_cpuidle_dev;


+2 −2
Original line number Original line Diff line number Diff line
@@ -450,12 +450,12 @@ static struct cpuidle_driver sh7372_cpuidle_driver = {
	},
	},
};
};


static void sh7372_cpuidle_init(void)
static void __init sh7372_cpuidle_init(void)
{
{
	shmobile_cpuidle_set_driver(&sh7372_cpuidle_driver);
	shmobile_cpuidle_set_driver(&sh7372_cpuidle_driver);
}
}
#else
#else
static void sh7372_cpuidle_init(void) {}
static void __init sh7372_cpuidle_init(void) {}
#endif
#endif


#ifdef CONFIG_SUSPEND
#ifdef CONFIG_SUSPEND