This source file includes following definitions.
- iop3xx_pmu_init
1
2
3
4
5
6
7 #include <linux/platform_device.h>
8 #include "irqs.h"
9
10 static struct resource pmu_resource = {
11 .start = IRQ_IOP32X_CORE_PMU,
12 .end = IRQ_IOP32X_CORE_PMU,
13 .flags = IORESOURCE_IRQ,
14 };
15
16 static struct platform_device pmu_device = {
17 .name = "xscale-pmu",
18 .id = -1,
19 .resource = &pmu_resource,
20 .num_resources = 1,
21 };
22
23 static int __init iop3xx_pmu_init(void)
24 {
25 platform_device_register(&pmu_device);
26 return 0;
27 }
28
29 arch_initcall(iop3xx_pmu_init);