diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-10 16:15:45 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:38 -0500 |
commit | 5f3d1092a949b33d01c95b7f5e5a83672629f131 (patch) | |
tree | 538bea4efeec3c2900a1ca2205d8dca6ea9e3c7b /arch/arm/mach-mx25 | |
parent | 224b8c83641c2f31e3efc9bc5956636cc42cadf7 (diff) |
ARM: mx25: dynamically allocate mxc_pwm devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25')
-rw-r--r-- | arch/arm/mach-mx25/devices.c | 76 | ||||
-rw-r--r-- | arch/arm/mach-mx25/devices.h | 4 |
2 files changed, 0 insertions, 80 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index 27d07ce55ee0..13a3c280a834 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
@@ -22,63 +22,6 @@ | |||
22 | #include <mach/mx25.h> | 22 | #include <mach/mx25.h> |
23 | #include <mach/irqs.h> | 23 | #include <mach/irqs.h> |
24 | 24 | ||
25 | static struct resource mxc_pwm_resources0[] = { | ||
26 | { | ||
27 | .start = 0x53fe0000, | ||
28 | .end = 0x53fe3fff, | ||
29 | .flags = IORESOURCE_MEM, | ||
30 | }, { | ||
31 | .start = 26, | ||
32 | .end = 26, | ||
33 | .flags = IORESOURCE_IRQ, | ||
34 | } | ||
35 | }; | ||
36 | |||
37 | struct platform_device mxc_pwm_device0 = { | ||
38 | .name = "mxc_pwm", | ||
39 | .id = 0, | ||
40 | .num_resources = ARRAY_SIZE(mxc_pwm_resources0), | ||
41 | .resource = mxc_pwm_resources0, | ||
42 | }; | ||
43 | |||
44 | static struct resource mxc_pwm_resources1[] = { | ||
45 | { | ||
46 | .start = 0x53fa0000, | ||
47 | .end = 0x53fa3fff, | ||
48 | .flags = IORESOURCE_MEM, | ||
49 | }, { | ||
50 | .start = 36, | ||
51 | .end = 36, | ||
52 | .flags = IORESOURCE_IRQ, | ||
53 | } | ||
54 | }; | ||
55 | |||
56 | struct platform_device mxc_pwm_device1 = { | ||
57 | .name = "mxc_pwm", | ||
58 | .id = 1, | ||
59 | .num_resources = ARRAY_SIZE(mxc_pwm_resources1), | ||
60 | .resource = mxc_pwm_resources1, | ||
61 | }; | ||
62 | |||
63 | static struct resource mxc_pwm_resources2[] = { | ||
64 | { | ||
65 | .start = 0x53fa8000, | ||
66 | .end = 0x53fabfff, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, { | ||
69 | .start = 41, | ||
70 | .end = 41, | ||
71 | .flags = IORESOURCE_IRQ, | ||
72 | } | ||
73 | }; | ||
74 | |||
75 | struct platform_device mxc_pwm_device2 = { | ||
76 | .name = "mxc_pwm", | ||
77 | .id = 2, | ||
78 | .num_resources = ARRAY_SIZE(mxc_pwm_resources2), | ||
79 | .resource = mxc_pwm_resources2, | ||
80 | }; | ||
81 | |||
82 | static struct resource mxc_keypad_resources[] = { | 25 | static struct resource mxc_keypad_resources[] = { |
83 | { | 26 | { |
84 | .start = 0x43fa8000, | 27 | .start = 0x43fa8000, |
@@ -98,25 +41,6 @@ struct platform_device mxc_keypad_device = { | |||
98 | .resource = mxc_keypad_resources, | 41 | .resource = mxc_keypad_resources, |
99 | }; | 42 | }; |
100 | 43 | ||
101 | static struct resource mxc_pwm_resources3[] = { | ||
102 | { | ||
103 | .start = 0x53fc8000, | ||
104 | .end = 0x53fcbfff, | ||
105 | .flags = IORESOURCE_MEM, | ||
106 | }, { | ||
107 | .start = 42, | ||
108 | .end = 42, | ||
109 | .flags = IORESOURCE_IRQ, | ||
110 | } | ||
111 | }; | ||
112 | |||
113 | struct platform_device mxc_pwm_device3 = { | ||
114 | .name = "mxc_pwm", | ||
115 | .id = 3, | ||
116 | .num_resources = ARRAY_SIZE(mxc_pwm_resources3), | ||
117 | .resource = mxc_pwm_resources3, | ||
118 | }; | ||
119 | |||
120 | static struct mxc_gpio_port imx_gpio_ports[] = { | 44 | static struct mxc_gpio_port imx_gpio_ports[] = { |
121 | { | 45 | { |
122 | .chip.label = "gpio-0", | 46 | .chip.label = "gpio-0", |
diff --git a/arch/arm/mach-mx25/devices.h b/arch/arm/mach-mx25/devices.h index 266c305a2ad7..afc60ddc6a31 100644 --- a/arch/arm/mach-mx25/devices.h +++ b/arch/arm/mach-mx25/devices.h | |||
@@ -1,7 +1,3 @@ | |||
1 | extern struct platform_device mxc_pwm_device0; | ||
2 | extern struct platform_device mxc_pwm_device1; | ||
3 | extern struct platform_device mxc_pwm_device2; | ||
4 | extern struct platform_device mxc_pwm_device3; | ||
5 | extern struct platform_device mxc_keypad_device; | 1 | extern struct platform_device mxc_keypad_device; |
6 | extern struct platform_device mx25_rtc_device; | 2 | extern struct platform_device mx25_rtc_device; |
7 | extern struct platform_device mx25_fb_device; | 3 | extern struct platform_device mx25_fb_device; |