diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-10 04:11:23 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:33 -0500 |
commit | 9f871469893a6d87c6cddf412f82ebf588fd4eca (patch) | |
tree | 02385e948c3e7c51d0ec917c3aa0e17bf79ede5f /arch/arm/mach-imx/devices.c | |
parent | 3f880141b8d12cdbb5faf0b9941ee50ac515ea1e (diff) |
ARM: imx: dynamically allocate imx21-hcd devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/devices.c')
-rw-r--r-- | arch/arm/mach-imx/devices.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/arm/mach-imx/devices.c b/arch/arm/mach-imx/devices.c index 4360b9c8f893..8fd2545395f9 100644 --- a/arch/arm/mach-imx/devices.c +++ b/arch/arm/mach-imx/devices.c | |||
@@ -123,30 +123,4 @@ int __init imx27_register_gpios(void) | |||
123 | } | 123 | } |
124 | #endif | 124 | #endif |
125 | 125 | ||
126 | #ifdef CONFIG_MACH_MX21 | ||
127 | static struct resource mx21_usbhc_resources[] = { | ||
128 | { | ||
129 | .start = MX21_USBOTG_BASE_ADDR, | ||
130 | .end = MX21_USBOTG_BASE_ADDR + SZ_8K - 1, | ||
131 | .flags = IORESOURCE_MEM, | ||
132 | }, | ||
133 | { | ||
134 | .start = MX21_INT_USBHOST, | ||
135 | .end = MX21_INT_USBHOST, | ||
136 | .flags = IORESOURCE_IRQ, | ||
137 | }, | ||
138 | }; | ||
139 | |||
140 | struct platform_device mx21_usbhc_device = { | ||
141 | .name = "imx21-hcd", | ||
142 | .id = 0, | ||
143 | .dev = { | ||
144 | .dma_mask = &mx21_usbhc_device.dev.coherent_dma_mask, | ||
145 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
146 | }, | ||
147 | .num_resources = ARRAY_SIZE(mx21_usbhc_resources), | ||
148 | .resource = mx21_usbhc_resources, | ||
149 | }; | ||
150 | #endif | ||
151 | |||
152 | #endif | 126 | #endif |