diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-07-30 17:57:25 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-08-01 05:16:55 -0400 |
commit | 6cafe48a6bfa8934d5564fbf9976a51040dac819 (patch) | |
tree | 4975eb00698283fd3b256963726de2dba513062f /arch/arm/mach-mx5/board-cpuimx51.c | |
parent | 7d92e8e6c4d45d33dd32a028081c89a6dedab032 (diff) |
ARM: mx5: dynamically allocate fsl-usb2-udc devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-cpuimx51.c')
-rw-r--r-- | arch/arm/mach-mx5/board-cpuimx51.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/board-cpuimx51.c b/arch/arm/mach-mx5/board-cpuimx51.c index aa1ff79e5a74..e2afe0c2a12e 100644 --- a/arch/arm/mach-mx5/board-cpuimx51.c +++ b/arch/arm/mach-mx5/board-cpuimx51.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include <asm/mach/time.h> | 36 | #include <asm/mach/time.h> |
37 | 37 | ||
38 | #include "devices-imx51.h" | 38 | #include "devices-imx51.h" |
39 | #include "devices.h" | ||
40 | 39 | ||
41 | #define CPUIMX51_USBH1_STP IMX_GPIO_NR(1, 27) | 40 | #define CPUIMX51_USBH1_STP IMX_GPIO_NR(1, 27) |
42 | #define CPUIMX51_QUARTA_GPIO IMX_GPIO_NR(3, 28) | 41 | #define CPUIMX51_QUARTA_GPIO IMX_GPIO_NR(3, 28) |
@@ -211,7 +210,7 @@ static const struct mxc_usbh_platform_data dr_utmi_config __initconst = { | |||
211 | .portsc = MXC_EHCI_UTMI_16BIT, | 210 | .portsc = MXC_EHCI_UTMI_16BIT, |
212 | }; | 211 | }; |
213 | 212 | ||
214 | static struct fsl_usb2_platform_data usb_pdata = { | 213 | static const struct fsl_usb2_platform_data usb_pdata __initconst = { |
215 | .operating_mode = FSL_USB2_DR_DEVICE, | 214 | .operating_mode = FSL_USB2_DR_DEVICE, |
216 | .phy_mode = FSL_USB2_PHY_UTMI_WIDE, | 215 | .phy_mode = FSL_USB2_PHY_UTMI_WIDE, |
217 | }; | 216 | }; |
@@ -273,7 +272,7 @@ static void __init eukrea_cpuimx51_init(void) | |||
273 | imx51_add_mxc_ehci_otg(&dr_utmi_config); | 272 | imx51_add_mxc_ehci_otg(&dr_utmi_config); |
274 | else { | 273 | else { |
275 | initialize_otg_port(NULL); | 274 | initialize_otg_port(NULL); |
276 | mxc_register_device(&mxc_usbdr_udc_device, &usb_pdata); | 275 | imx51_add_fsl_usb2_udc(&usb_pdata); |
277 | } | 276 | } |
278 | imx51_add_mxc_ehci_hs(1, &usbh1_config); | 277 | imx51_add_mxc_ehci_hs(1, &usbh1_config); |
279 | 278 | ||