aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/board-mx51_babbage.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-07-30 17:57:25 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-08-01 05:16:55 -0400
commit6cafe48a6bfa8934d5564fbf9976a51040dac819 (patch)
tree4975eb00698283fd3b256963726de2dba513062f /arch/arm/mach-mx5/board-mx51_babbage.c
parent7d92e8e6c4d45d33dd32a028081c89a6dedab032 (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-mx51_babbage.c')
-rw-r--r--arch/arm/mach-mx5/board-mx51_babbage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 1d15297ab8b4..576a7992c23d 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -293,7 +293,7 @@ static const struct mxc_usbh_platform_data dr_utmi_config __initconst = {
293 .portsc = MXC_EHCI_UTMI_16BIT, 293 .portsc = MXC_EHCI_UTMI_16BIT,
294}; 294};
295 295
296static struct fsl_usb2_platform_data usb_pdata = { 296static const struct fsl_usb2_platform_data usb_pdata __initconst = {
297 .operating_mode = FSL_USB2_DR_DEVICE, 297 .operating_mode = FSL_USB2_DR_DEVICE,
298 .phy_mode = FSL_USB2_PHY_UTMI_WIDE, 298 .phy_mode = FSL_USB2_PHY_UTMI_WIDE,
299}; 299};
@@ -387,7 +387,7 @@ static void __init mx51_babbage_init(void)
387 imx51_add_mxc_ehci_otg(&dr_utmi_config); 387 imx51_add_mxc_ehci_otg(&dr_utmi_config);
388 else { 388 else {
389 initialize_otg_port(NULL); 389 initialize_otg_port(NULL);
390 mxc_register_device(&mxc_usbdr_udc_device, &usb_pdata); 390 imx51_add_fsl_usb2_udc(&usb_pdata);
391 } 391 }
392 392
393 gpio_usbh1_active(); 393 gpio_usbh1_active();