diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-06-14 20:01:53 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-06-14 20:32:37 -0400 |
commit | c2f96de7d0a4b8bb99d5a1ad1056d08d24614ae8 (patch) | |
tree | b033ee2a7929c6d4afbadf84a36db88818e4f6f0 /arch | |
parent | cd8dc7ae41f2b2e6392e32c8471589a8ca5fa705 (diff) |
ARM: EXYNOS: Remove legacy PMU initialization code
This patch removes legacy PMU initialization code that was used to set
up PMU when booting with ATAGS, which is not supported any more.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-exynos/common.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 9834357707d8..cb07f4a03483 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c | |||
@@ -922,30 +922,3 @@ static int __init exynos_init_irq_eint(void) | |||
922 | return 0; | 922 | return 0; |
923 | } | 923 | } |
924 | arch_initcall(exynos_init_irq_eint); | 924 | arch_initcall(exynos_init_irq_eint); |
925 | |||
926 | static struct resource exynos4_pmu_resource[] = { | ||
927 | DEFINE_RES_IRQ(EXYNOS4_IRQ_PMU), | ||
928 | DEFINE_RES_IRQ(EXYNOS4_IRQ_PMU_CPU1), | ||
929 | #if defined(CONFIG_SOC_EXYNOS4412) | ||
930 | DEFINE_RES_IRQ(EXYNOS4_IRQ_PMU_CPU2), | ||
931 | DEFINE_RES_IRQ(EXYNOS4_IRQ_PMU_CPU3), | ||
932 | #endif | ||
933 | }; | ||
934 | |||
935 | static struct platform_device exynos4_device_pmu = { | ||
936 | .name = "arm-pmu", | ||
937 | .num_resources = ARRAY_SIZE(exynos4_pmu_resource), | ||
938 | .resource = exynos4_pmu_resource, | ||
939 | }; | ||
940 | |||
941 | static int __init exynos_armpmu_init(void) | ||
942 | { | ||
943 | if (!of_have_populated_dt()) { | ||
944 | if (soc_is_exynos4210() || soc_is_exynos4212()) | ||
945 | exynos4_device_pmu.num_resources = 2; | ||
946 | platform_device_register(&exynos4_device_pmu); | ||
947 | } | ||
948 | |||
949 | return 0; | ||
950 | } | ||
951 | arch_initcall(exynos_armpmu_init); | ||