]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/usb.c
[PATCH] ARM: OMAP: OMAP1510 USB compile fix
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / usb.c
index 3e374fda4f393844e4a60d7645eaea821493dd58..687779a57a350a49832b37ab13b2e3a2999b4609 100644 (file)
@@ -538,6 +538,8 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config)
 
 #ifdef CONFIG_USB_GADGET_OMAP
        if (config->register_dev) {
+               int status;
+
                udc_device.dev.platform_data = config;
                status = platform_device_register(&udc_device);
                if (status)
@@ -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 (config->register_host) {
+               int status;
+
                ohci_device.dev.platform_data = config;
                status = platform_device_register(&ohci_device);
                if (status)