Commit 9fe3d35a authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Rafael J. Wysocki

ARM: s3c64xx: cpuidle: use init/exit common routine

Remove the duplicated code and use the cpuidle common code for initialization.
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b181a3b0
...@@ -40,8 +40,6 @@ static int s3c64xx_enter_idle(struct cpuidle_device *dev, ...@@ -40,8 +40,6 @@ static int s3c64xx_enter_idle(struct cpuidle_device *dev,
return index; return index;
} }
static DEFINE_PER_CPU(struct cpuidle_device, s3c64xx_cpuidle_device);
static struct cpuidle_driver s3c64xx_cpuidle_driver = { static struct cpuidle_driver s3c64xx_cpuidle_driver = {
.name = "s3c64xx_cpuidle", .name = "s3c64xx_cpuidle",
.owner = THIS_MODULE, .owner = THIS_MODULE,
...@@ -60,16 +58,6 @@ static struct cpuidle_driver s3c64xx_cpuidle_driver = { ...@@ -60,16 +58,6 @@ static struct cpuidle_driver s3c64xx_cpuidle_driver = {
static int __init s3c64xx_init_cpuidle(void) static int __init s3c64xx_init_cpuidle(void)
{ {
int ret; return cpuidle_register(&s3c64xx_cpuidle_driver, NULL);
cpuidle_register_driver(&s3c64xx_cpuidle_driver);
ret = cpuidle_register_device(&s3c64xx_cpuidle_device);
if (ret) {
pr_err("Failed to register cpuidle device: %d\n", ret);
return ret;
}
return 0;
} }
device_initcall(s3c64xx_init_cpuidle); device_initcall(s3c64xx_init_cpuidle);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment