Skip to content

Commit 300f86d

Browse files
author
Uwe Kleine-König
committed
ARM: imx: remove unused devices
all these don't have a driver and are not added in any machine file. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
1 parent ae71a56 commit 300f86d

File tree

2 files changed

+0
-86
lines changed

2 files changed

+0
-86
lines changed

arch/arm/mach-imx/devices.c

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -70,48 +70,6 @@ struct platform_device imx1_camera_device = {
7070
.num_resources = ARRAY_SIZE(imx1_camera_resources),
7171
};
7272

73-
static struct resource imx_rtc_resources[] = {
74-
{
75-
.start = 0x00204000,
76-
.end = 0x00204024,
77-
.flags = IORESOURCE_MEM,
78-
}, {
79-
.start = MX1_RTC_INT,
80-
.end = MX1_RTC_INT,
81-
.flags = IORESOURCE_IRQ,
82-
}, {
83-
.start = MX1_RTC_SAMINT,
84-
.end = MX1_RTC_SAMINT,
85-
.flags = IORESOURCE_IRQ,
86-
},
87-
};
88-
89-
struct platform_device imx_rtc_device = {
90-
.name = "rtc-imx",
91-
.id = 0,
92-
.resource = imx_rtc_resources,
93-
.num_resources = ARRAY_SIZE(imx_rtc_resources),
94-
};
95-
96-
static struct resource imx_wdt_resources[] = {
97-
{
98-
.start = 0x00201000,
99-
.end = 0x00201008,
100-
.flags = IORESOURCE_MEM,
101-
}, {
102-
.start = MX1_WDT_INT,
103-
.end = MX1_WDT_INT,
104-
.flags = IORESOURCE_IRQ,
105-
},
106-
};
107-
108-
struct platform_device imx_wdt_device = {
109-
.name = "imx-wdt",
110-
.id = 0,
111-
.resource = imx_wdt_resources,
112-
.num_resources = ARRAY_SIZE(imx_wdt_resources),
113-
};
114-
11573
static struct resource imx_usb_resources[] = {
11674
{
11775
.start = 0x00212000,
@@ -219,41 +177,6 @@ struct platform_device mx27_camera_device = {
219177
};
220178
#endif
221179

222-
/*
223-
* General Purpose Timer
224-
* - i.MX21: 3 timers
225-
* - i.MX27: 6 timers
226-
*/
227-
#define DEFINE_IMX_GPT_DEVICE(n, baseaddr, irq) \
228-
static struct resource timer ## n ##_resources[] = { \
229-
{ \
230-
.start = baseaddr, \
231-
.end = baseaddr + SZ_4K - 1, \
232-
.flags = IORESOURCE_MEM, \
233-
}, { \
234-
.start = irq, \
235-
.end = irq, \
236-
.flags = IORESOURCE_IRQ, \
237-
} \
238-
}; \
239-
\
240-
struct platform_device mxc_gpt ## n = { \
241-
.name = "imx_gpt", \
242-
.id = n, \
243-
.num_resources = ARRAY_SIZE(timer ## n ## _resources), \
244-
.resource = timer ## n ## _resources, \
245-
}
246-
247-
/* We use gpt1 as system timer, so do not add a device for this one */
248-
DEFINE_IMX_GPT_DEVICE(1, MX2x_GPT2_BASE_ADDR, MX2x_INT_GPT2);
249-
DEFINE_IMX_GPT_DEVICE(2, MX2x_GPT3_BASE_ADDR, MX2x_INT_GPT3);
250-
251-
#ifdef CONFIG_MACH_MX27
252-
DEFINE_IMX_GPT_DEVICE(3, MX27_GPT4_BASE_ADDR, MX27_INT_GPT4);
253-
DEFINE_IMX_GPT_DEVICE(4, MX27_GPT5_BASE_ADDR, MX27_INT_GPT5);
254-
DEFINE_IMX_GPT_DEVICE(5, MX27_GPT6_BASE_ADDR, MX27_INT_GPT6);
255-
#endif
256-
257180
/* Watchdog: i.MX1 has seperate driver, i.MX21 and i.MX27 are equal */
258181
static struct resource mxc_wdt_resources[] = {
259182
{

arch/arm/mach-imx/devices.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
#ifdef CONFIG_ARCH_MX1
22
extern struct platform_device imx1_camera_device;
3-
extern struct platform_device imx_rtc_device;
4-
extern struct platform_device imx_wdt_device;
53
extern struct platform_device imx_usb_device;
64
#endif
75

86
#if defined(CONFIG_MACH_MX21) || defined(CONFIG_MACH_MX27)
9-
extern struct platform_device mxc_gpt1;
10-
extern struct platform_device mxc_gpt2;
11-
#ifdef CONFIG_MACH_MX27
12-
extern struct platform_device mxc_gpt3;
13-
extern struct platform_device mxc_gpt4;
14-
extern struct platform_device mxc_gpt5;
15-
#endif
167
extern struct platform_device mxc_wdt;
178
extern struct platform_device mxc_fb_device;
189
extern struct platform_device mxc_pwm_device;

0 commit comments

Comments
 (0)