summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210/pm.c
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2014-07-02 19:34:32 +0200
committerKukjin Kim <kgene.kim@samsung.com>2014-07-19 04:32:10 +0900
commit28c8331d386a0c4122501a848a8fc3680bb65427 (patch)
treea4c1eac3003e6e45be6e70255509b4d17074a897 /arch/arm/mach-s5pv210/pm.c
parentb672b27d232e337c848f51a371538b665ca4fcf3 (diff)
downloadop-kernel-dev-28c8331d386a0c4122501a848a8fc3680bb65427.zip
op-kernel-dev-28c8331d386a0c4122501a848a8fc3680bb65427.tar.gz
ARM: S5PV210: Remove support for board files
Since all in-tree boards have been moved to device tree, we can now drop legacy code and make mach-s5pv210 DT-only. This patch does it. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv210/pm.c')
-rw-r--r--arch/arm/mach-s5pv210/pm.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/arch/arm/mach-s5pv210/pm.c b/arch/arm/mach-s5pv210/pm.c
index dd5bfec..00d1523 100644
--- a/arch/arm/mach-s5pv210/pm.c
+++ b/arch/arm/mach-s5pv210/pm.c
@@ -75,26 +75,6 @@ static void s5pv210_pm_prepare(void)
s3c_pm_do_save(s5pv210_core_save, ARRAY_SIZE(s5pv210_core_save));
}
-static int s5pv210_pm_add(struct device *dev, struct subsys_interface *sif)
-{
- pm_cpu_prep = s5pv210_pm_prepare;
- pm_cpu_sleep = s5pv210_cpu_suspend;
-
- return 0;
-}
-
-static struct subsys_interface s5pv210_pm_interface = {
- .name = "s5pv210_pm",
- .subsys = &s5pv210_subsys,
- .add_dev = s5pv210_pm_add,
-};
-
-static __init int s5pv210_pm_drvinit(void)
-{
- return subsys_interface_register(&s5pv210_pm_interface);
-}
-arch_initcall(s5pv210_pm_drvinit);
-
static void s5pv210_pm_resume(void)
{
u32 tmp;
@@ -114,6 +94,10 @@ static struct syscore_ops s5pv210_pm_syscore_ops = {
static __init int s5pv210_pm_syscore_init(void)
{
register_syscore_ops(&s5pv210_pm_syscore_ops);
+
+ pm_cpu_prep = s5pv210_pm_prepare;
+ pm_cpu_sleep = s5pv210_cpu_suspend;
+
return 0;
}
arch_initcall(s5pv210_pm_syscore_init);
OpenPOWER on IntegriCloud