Merge tag 'cleanup2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[linux-2.6.git] / arch / arm / mach-exynos / pm.c
index 4093fea..a4f61a4 100644 (file)
@@ -206,7 +206,7 @@ static void exynos4_pm_prepare(void)
 
 }
 
-static int exynos4_pm_add(struct sys_device *sysdev)
+static int exynos4_pm_add(struct device *dev)
 {
        pm_cpu_prep = exynos4_pm_prepare;
        pm_cpu_sleep = exynos4_cpu_suspend;
@@ -281,8 +281,10 @@ static void exynos4_restore_pll(void)
        } while (epll_wait || vpll_wait);
 }
 
-static struct sysdev_driver exynos4_pm_driver = {
-       .add            = exynos4_pm_add,
+static struct subsys_interface exynos4_pm_interface = {
+       .name           = "exynos4_pm",
+       .subsys         = &exynos4_subsys,
+       .add_dev        = exynos4_pm_add,
 };
 
 static __init int exynos4_pm_drvinit(void)
@@ -305,7 +307,7 @@ static __init int exynos4_pm_drvinit(void)
                clk_put(pll_base);
        }
 
-       return sysdev_driver_register(&exynos4_sysclass, &exynos4_pm_driver);
+       return subsys_interface_register(&exynos4_pm_interface);
 }
 arch_initcall(exynos4_pm_drvinit);