ARM i.MX: introduce imx_otg_ulpi_create to create ULPI transceivers
[deliverable/linux.git] / arch / arm / mach-mx5 / board-mx51_efikasb.c
index 18e29b9b088bf4df2d3308efd32b95eff2da9f8d..db04ce8462dc35b8b0a2ee3ac0404cc80bec1075 100644 (file)
@@ -129,10 +129,10 @@ static struct mxc_usbh_platform_data usbh2_config = {
 
 static void __init mx51_efikasb_usb(void)
 {
-       usbh2_config.otg = otg_ulpi_create(&mxc_ulpi_access_ops,
-                               ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT |
-                               ULPI_OTG_EXTVBUSIND);
-       mxc_register_device(&mxc_usbh2_device, &usbh2_config);
+       usbh2_config.otg = imx_otg_ulpi_create(ULPI_OTG_DRVVBUS |
+                       ULPI_OTG_DRVVBUS_EXT | ULPI_OTG_EXTVBUSIND);
+       if (usbh2_config.otg)
+               mxc_register_device(&mxc_usbh2_device, &usbh2_config);
 }
 
 static struct gpio_led mx51_efikasb_leds[] = {
This page took 0.025212 seconds and 5 git commands to generate.