aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos/common.c')
-rw-r--r--arch/arm/mach-exynos/common.c27
1 files changed, 6 insertions, 21 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index eff4446f5e31..3302a8dca4e0 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -565,30 +565,18 @@ void __init exynos5_init_irq(void)
565 s5p_init_irq(NULL, 0); 565 s5p_init_irq(NULL, 0);
566} 566}
567 567
568struct bus_type exynos4_subsys = { 568struct bus_type exynos_subsys = {
569 .name = "exynos4-core", 569 .name = "exynos-core",
570 .dev_name = "exynos4-core", 570 .dev_name = "exynos-core",
571};
572
573struct bus_type exynos5_subsys = {
574 .name = "exynos5-core",
575 .dev_name = "exynos5-core",
576}; 571};
577 572
578static struct device exynos4_dev = { 573static struct device exynos4_dev = {
579 .bus = &exynos4_subsys, 574 .bus = &exynos_subsys,
580};
581
582static struct device exynos5_dev = {
583 .bus = &exynos5_subsys,
584}; 575};
585 576
586static int __init exynos_core_init(void) 577static int __init exynos_core_init(void)
587{ 578{
588 if (soc_is_exynos5250()) 579 return subsys_system_register(&exynos_subsys, NULL);
589 return subsys_system_register(&exynos5_subsys, NULL);
590 else
591 return subsys_system_register(&exynos4_subsys, NULL);
592} 580}
593core_initcall(exynos_core_init); 581core_initcall(exynos_core_init);
594 582
@@ -675,10 +663,7 @@ static int __init exynos_init(void)
675{ 663{
676 printk(KERN_INFO "EXYNOS: Initializing architecture\n"); 664 printk(KERN_INFO "EXYNOS: Initializing architecture\n");
677 665
678 if (soc_is_exynos5250()) 666 return device_register(&exynos4_dev);
679 return device_register(&exynos5_dev);
680 else
681 return device_register(&exynos4_dev);
682} 667}
683 668
684/* uart registration process */ 669/* uart registration process */