diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-07-30 17:41:49 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-08-01 05:16:55 -0400 |
commit | 7d92e8e6c4d45d33dd32a028081c89a6dedab032 (patch) | |
tree | 3c9329d9d2d30e99314294f605f74716c8f56162 /arch/arm/mach-mx5/board-mx51_efikasb.c | |
parent | b7ca83273d0f4dc160711727292a277522d5e4a1 (diff) |
ARM: mx5: dynamically allocate mxc-ehci devices
Additionally make the usb related defines consistent with the other imx
SoCs.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_efikasb.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_efikasb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_efikasb.c b/arch/arm/mach-mx5/board-mx51_efikasb.c index 2e4d9d32a87c..10f0562c3c48 100644 --- a/arch/arm/mach-mx5/board-mx51_efikasb.c +++ b/arch/arm/mach-mx5/board-mx51_efikasb.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include <asm/mach/time.h> | 42 | #include <asm/mach/time.h> |
43 | 43 | ||
44 | #include "devices-imx51.h" | 44 | #include "devices-imx51.h" |
45 | #include "devices.h" | ||
46 | #include "efika.h" | 45 | #include "efika.h" |
47 | 46 | ||
48 | #define EFIKASB_USBH2_STP IMX_GPIO_NR(2, 20) | 47 | #define EFIKASB_USBH2_STP IMX_GPIO_NR(2, 20) |
@@ -119,7 +118,7 @@ static int initialize_usbh2_port(struct platform_device *pdev) | |||
119 | return mx51_initialize_usb_hw(pdev->id, MXC_EHCI_ITC_NO_THRESHOLD); | 118 | return mx51_initialize_usb_hw(pdev->id, MXC_EHCI_ITC_NO_THRESHOLD); |
120 | } | 119 | } |
121 | 120 | ||
122 | static struct mxc_usbh_platform_data usbh2_config = { | 121 | static struct mxc_usbh_platform_data usbh2_config __initdata = { |
123 | .init = initialize_usbh2_port, | 122 | .init = initialize_usbh2_port, |
124 | .portsc = MXC_EHCI_MODE_ULPI, | 123 | .portsc = MXC_EHCI_MODE_ULPI, |
125 | }; | 124 | }; |
@@ -129,7 +128,7 @@ static void __init mx51_efikasb_usb(void) | |||
129 | usbh2_config.otg = imx_otg_ulpi_create(ULPI_OTG_DRVVBUS | | 128 | usbh2_config.otg = imx_otg_ulpi_create(ULPI_OTG_DRVVBUS | |
130 | ULPI_OTG_DRVVBUS_EXT | ULPI_OTG_EXTVBUSIND); | 129 | ULPI_OTG_DRVVBUS_EXT | ULPI_OTG_EXTVBUSIND); |
131 | if (usbh2_config.otg) | 130 | if (usbh2_config.otg) |
132 | mxc_register_device(&mxc_usbh2_device, &usbh2_config); | 131 | imx51_add_mxc_ehci_hs(2, &usbh2_config); |
133 | } | 132 | } |
134 | 133 | ||
135 | static const struct gpio_led mx51_efikasb_leds[] __initconst = { | 134 | static const struct gpio_led mx51_efikasb_leds[] __initconst = { |