mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
df3d17e068
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>
40 lines
879 B
C
40 lines
879 B
C
/*
|
|
* PMU IRQ registration for the iop3xx xscale PMU families.
|
|
* Copyright (C) 2010 Will Deacon, ARM Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
#include <linux/platform_device.h>
|
|
#include <mach/irqs.h>
|
|
|
|
static struct resource pmu_resource = {
|
|
#ifdef CONFIG_ARCH_IOP32X
|
|
.start = IRQ_IOP32X_CORE_PMU,
|
|
.end = IRQ_IOP32X_CORE_PMU,
|
|
#endif
|
|
#ifdef CONFIG_ARCH_IOP33X
|
|
.start = IRQ_IOP33X_CORE_PMU,
|
|
.end = IRQ_IOP33X_CORE_PMU,
|
|
#endif
|
|
.flags = IORESOURCE_IRQ,
|
|
};
|
|
|
|
static struct platform_device pmu_device = {
|
|
.name = "arm-pmu",
|
|
.id = -1,
|
|
.resource = &pmu_resource,
|
|
.num_resources = 1,
|
|
};
|
|
|
|
static int __init iop3xx_pmu_init(void)
|
|
{
|
|
platform_device_register(&pmu_device);
|
|
return 0;
|
|
}
|
|
|
|
arch_initcall(iop3xx_pmu_init);
|