Commit c0a93f8b authored by Ladislav Michl's avatar Ladislav Michl Committed by Tony Lindgren

[PATCH] ARM: OMAP: OMAP1510 USB compile fix

OMAP1510 USB compile fix
parent d7390430
...@@ -538,6 +538,8 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config) ...@@ -538,6 +538,8 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config)
#ifdef CONFIG_USB_GADGET_OMAP #ifdef CONFIG_USB_GADGET_OMAP
if (config->register_dev) { if (config->register_dev) {
int status;
udc_device.dev.platform_data = config; udc_device.dev.platform_data = config;
status = platform_device_register(&udc_device); status = platform_device_register(&udc_device);
if (status) if (status)
...@@ -548,6 +550,8 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config) ...@@ -548,6 +550,8 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config)
#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
if (config->register_host) { if (config->register_host) {
int status;
ohci_device.dev.platform_data = config; ohci_device.dev.platform_data = config;
status = platform_device_register(&ohci_device); status = platform_device_register(&ohci_device);
if (status) if (status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment