aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos/cpu.c')
-rw-r--r--arch/arm/mach-exynos/cpu.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-exynos/cpu.c b/arch/arm/mach-exynos/cpu.c
index cc8d4bd6d0f7..90a0297b77b8 100644
--- a/arch/arm/mach-exynos/cpu.c
+++ b/arch/arm/mach-exynos/cpu.c
@@ -9,7 +9,7 @@
9*/ 9*/
10 10
11#include <linux/sched.h> 11#include <linux/sched.h>
12#include <linux/sysdev.h> 12#include <linux/device.h>
13 13
14#include <asm/mach/map.h> 14#include <asm/mach/map.h>
15#include <asm/mach/irq.h> 15#include <asm/mach/irq.h>
@@ -238,17 +238,18 @@ void __init exynos4_init_irq(void)
238 s5p_init_irq(NULL, 0); 238 s5p_init_irq(NULL, 0);
239} 239}
240 240
241struct sysdev_class exynos4_sysclass = { 241struct bus_type exynos4_subsys = {
242 .name = "exynos4-core", 242 .name = "exynos4-core",
243 .dev_name = "exynos4-core",
243}; 244};
244 245
245static struct sys_device exynos4_sysdev = { 246static struct device exynos4_dev = {
246 .cls = &exynos4_sysclass, 247 .bus = &exynos4_subsys,
247}; 248};
248 249
249static int __init exynos4_core_init(void) 250static int __init exynos4_core_init(void)
250{ 251{
251 return sysdev_class_register(&exynos4_sysclass); 252 return subsys_system_register(&exynos4_subsys, NULL);
252} 253}
253core_initcall(exynos4_core_init); 254core_initcall(exynos4_core_init);
254 255
@@ -289,5 +290,5 @@ int __init exynos_init(void)
289 if (soc_is_exynos4210() || soc_is_exynos4212() || soc_is_exynos4412()) 290 if (soc_is_exynos4210() || soc_is_exynos4212() || soc_is_exynos4412())
290 s5p_reset_hook = exynos4_sw_reset; 291 s5p_reset_hook = exynos4_sw_reset;
291 292
292 return sysdev_register(&exynos4_sysdev); 293 return device_register(&exynos4_dev);
293} 294}