diff options
author | Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com> | 2012-07-19 04:50:21 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2012-08-23 06:35:51 -0400 |
commit | df3d17e068bf69e3c5a53d52d30caad3d061b762 (patch) | |
tree | da3143c1b985cbefdac68191ac53ea6fbe1e25ee /arch/arm/mach-ux500/cpu-db8500.c | |
parent | f0d1bc47953743aef9d2ed5326bc5973a3db08ab (diff) |
ARM: pmu: remove arm_pmu_type enumeration
The arm_pmu_type enumeration was initially introduced to identify
different PMU types in the system, the usual one being that on the CPU
(ARM_PMU_DEVICE_CPU). With the removal of the PMU reservation code and
the introduction of devicetree bindings for the CPU PMU, the enumeration
is no longer required.
This patch removes the enumeration and updates the various CPU PMU
platform devices so that they no longer pass an .id field referring
to identify the PMU type.
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Pawel Moll <pawel.moll@arm.com>
Acked-by: Jon Hunter <jon-hunter@ti.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jiandong Zheng <jdzheng@broadcom.com>
Signed-off-by: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
[will: cosmetic edits and actual removal of the enum type]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db8500.c')
-rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index db3c52d56ca4..3ee761d3a86f 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/mfd/abx500/ab8500.h> | 19 | #include <linux/mfd/abx500/ab8500.h> |
20 | 20 | ||
21 | #include <asm/mach/map.h> | 21 | #include <asm/mach/map.h> |
22 | #include <asm/pmu.h> | ||
23 | #include <plat/gpio-nomadik.h> | 22 | #include <plat/gpio-nomadik.h> |
24 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
25 | #include <mach/setup.h> | 24 | #include <mach/setup.h> |
@@ -122,7 +121,7 @@ struct arm_pmu_platdata db8500_pmu_platdata = { | |||
122 | 121 | ||
123 | static struct platform_device db8500_pmu_device = { | 122 | static struct platform_device db8500_pmu_device = { |
124 | .name = "arm-pmu", | 123 | .name = "arm-pmu", |
125 | .id = ARM_PMU_DEVICE_CPU, | 124 | .id = -1, |
126 | .num_resources = ARRAY_SIZE(db8500_pmu_resources), | 125 | .num_resources = ARRAY_SIZE(db8500_pmu_resources), |
127 | .resource = db8500_pmu_resources, | 126 | .resource = db8500_pmu_resources, |
128 | .dev.platform_data = &db8500_pmu_platdata, | 127 | .dev.platform_data = &db8500_pmu_platdata, |