aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r--arch/arm/mach-exynos/common.c15
-rw-r--r--arch/arm/mach-exynos/pm.c10
2 files changed, 14 insertions, 11 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index b4beb7e2b5b8..c59e18871006 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -13,7 +13,7 @@
13#include <linux/interrupt.h> 13#include <linux/interrupt.h>
14#include <linux/irq.h> 14#include <linux/irq.h>
15#include <linux/io.h> 15#include <linux/io.h>
16#include <linux/sysdev.h> 16#include <linux/device.h>
17#include <linux/gpio.h> 17#include <linux/gpio.h>
18#include <linux/sched.h> 18#include <linux/sched.h>
19#include <linux/serial_core.h> 19#include <linux/serial_core.h>
@@ -423,17 +423,18 @@ void __init exynos4_init_irq(void)
423 s5p_init_irq(NULL, 0); 423 s5p_init_irq(NULL, 0);
424} 424}
425 425
426struct sysdev_class exynos4_sysclass = { 426struct bus_type exynos4_subsys = {
427 .name = "exynos4-core", 427 .name = "exynos4-core",
428 .dev_name = "exynos4-core",
428}; 429};
429 430
430static struct sys_device exynos4_sysdev = { 431static struct device exynos4_dev = {
431 .cls = &exynos4_sysclass, 432 .bus = &exynos4_subsys,
432}; 433};
433 434
434static int __init exynos4_core_init(void) 435static int __init exynos4_core_init(void)
435{ 436{
436 return sysdev_class_register(&exynos4_sysclass); 437 return subsys_system_register(&exynos4_subsys, NULL);
437} 438}
438core_initcall(exynos4_core_init); 439core_initcall(exynos4_core_init);
439 440
@@ -470,7 +471,7 @@ int __init exynos_init(void)
470 /* set idle function */ 471 /* set idle function */
471 pm_idle = exynos_idle; 472 pm_idle = exynos_idle;
472 473
473 return sysdev_register(&exynos4_sysdev); 474 return device_register(&exynos4_dev);
474} 475}
475 476
476/* uart registration process */ 477/* uart registration process */
diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c
index 4093fea849c3..a4f61a43c7ba 100644
--- a/arch/arm/mach-exynos/pm.c
+++ b/arch/arm/mach-exynos/pm.c
@@ -206,7 +206,7 @@ static void exynos4_pm_prepare(void)
206 206
207} 207}
208 208
209static int exynos4_pm_add(struct sys_device *sysdev) 209static int exynos4_pm_add(struct device *dev)
210{ 210{
211 pm_cpu_prep = exynos4_pm_prepare; 211 pm_cpu_prep = exynos4_pm_prepare;
212 pm_cpu_sleep = exynos4_cpu_suspend; 212 pm_cpu_sleep = exynos4_cpu_suspend;
@@ -281,8 +281,10 @@ static void exynos4_restore_pll(void)
281 } while (epll_wait || vpll_wait); 281 } while (epll_wait || vpll_wait);
282} 282}
283 283
284static struct sysdev_driver exynos4_pm_driver = { 284static struct subsys_interface exynos4_pm_interface = {
285 .add = exynos4_pm_add, 285 .name = "exynos4_pm",
286 .subsys = &exynos4_subsys,
287 .add_dev = exynos4_pm_add,
286}; 288};
287 289
288static __init int exynos4_pm_drvinit(void) 290static __init int exynos4_pm_drvinit(void)
@@ -305,7 +307,7 @@ static __init int exynos4_pm_drvinit(void)
305 clk_put(pll_base); 307 clk_put(pll_base);
306 } 308 }
307 309
308 return sysdev_driver_register(&exynos4_sysclass, &exynos4_pm_driver); 310 return subsys_interface_register(&exynos4_pm_interface);
309} 311}
310arch_initcall(exynos4_pm_drvinit); 312arch_initcall(exynos4_pm_drvinit);
311 313