diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-05-15 02:47:40 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-05-15 18:03:43 -0400 |
commit | 9ee6af9c3fad48cddc0684d0c77d3ea1329e10a1 (patch) | |
tree | 3b20fe7e15f505f6e0e852dba1e058af6f409b4b /arch | |
parent | 3a08f7f85a885da15d47ad92464f829535aff7cb (diff) |
ARM: EXYNOS: Remove a new bus_type instance for EXYNOS5
A seperate bus_type instance is not required for EXYNOS5. The
existing bus_type instance used with EXYNOS4 is sufficient for
both EXYNOS4 and EXYNOS5. This also solves issue of uninitialized
usage of exynos4_subsys in EXYNOS4 power management code that is
reused for EXYNOS5 also. In addition to that, the existing
exynos4_subsys bus_type is renamed to exynos_subsys to indicate
that it is reused on both EXYNOS4 and EXYNOS5 platforms.
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-exynos/common.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-exynos/pm.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/cpu.h | 2 |
3 files changed, 8 insertions, 23 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 | ||
568 | struct bus_type exynos4_subsys = { | 568 | struct bus_type exynos_subsys = { |
569 | .name = "exynos4-core", | 569 | .name = "exynos-core", |
570 | .dev_name = "exynos4-core", | 570 | .dev_name = "exynos-core", |
571 | }; | ||
572 | |||
573 | struct bus_type exynos5_subsys = { | ||
574 | .name = "exynos5-core", | ||
575 | .dev_name = "exynos5-core", | ||
576 | }; | 571 | }; |
577 | 572 | ||
578 | static struct device exynos4_dev = { | 573 | static struct device exynos4_dev = { |
579 | .bus = &exynos4_subsys, | 574 | .bus = &exynos_subsys, |
580 | }; | ||
581 | |||
582 | static struct device exynos5_dev = { | ||
583 | .bus = &exynos5_subsys, | ||
584 | }; | 575 | }; |
585 | 576 | ||
586 | static int __init exynos_core_init(void) | 577 | static 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 | } |
593 | core_initcall(exynos_core_init); | 581 | core_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 */ |
diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index 428cfeb57724..7164aa95ad9d 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c | |||
@@ -275,7 +275,7 @@ static void exynos4_restore_pll(void) | |||
275 | 275 | ||
276 | static struct subsys_interface exynos4_pm_interface = { | 276 | static struct subsys_interface exynos4_pm_interface = { |
277 | .name = "exynos4_pm", | 277 | .name = "exynos4_pm", |
278 | .subsys = &exynos4_subsys, | 278 | .subsys = &exynos_subsys, |
279 | .add_dev = exynos4_pm_add, | 279 | .add_dev = exynos4_pm_add, |
280 | }; | 280 | }; |
281 | 281 | ||
diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h index 787ceaca0be8..0721293fad63 100644 --- a/arch/arm/plat-samsung/include/plat/cpu.h +++ b/arch/arm/plat-samsung/include/plat/cpu.h | |||
@@ -202,7 +202,7 @@ extern struct bus_type s3c2443_subsys; | |||
202 | extern struct bus_type s3c6410_subsys; | 202 | extern struct bus_type s3c6410_subsys; |
203 | extern struct bus_type s5p64x0_subsys; | 203 | extern struct bus_type s5p64x0_subsys; |
204 | extern struct bus_type s5pv210_subsys; | 204 | extern struct bus_type s5pv210_subsys; |
205 | extern struct bus_type exynos4_subsys; | 205 | extern struct bus_type exynos_subsys; |
206 | 206 | ||
207 | extern void (*s5pc1xx_idle)(void); | 207 | extern void (*s5pc1xx_idle)(void); |
208 | 208 | ||