]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: fix apollon USB device support
authorKyungmin Park <kyungmin.park@samsung.com>
Fri, 10 Nov 2006 00:11:46 +0000 (02:11 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Nov 2006 00:11:46 +0000 (02:11 +0200)
-  Add apollon use the non-double-buffering in PIO mode
-  Fix compiler warning

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/gadget/omap_udc.c

index ceba0a4d3831fd640a90d1af9228f73e33003d42..31df02e87a5e0e1e4e3694c0d1b73ed2245c8630 100644 (file)
@@ -2579,6 +2579,7 @@ omap_ep_setup(char *name, u8 addr, u8 type,
                 * (for more reliable behavior)
                 */
                if ((!use_dma && (addr & USB_DIR_IN))
+                               || machine_is_omap_apollon()
                                || cpu_is_omap15xx())
                        dbuf = 0;
 
@@ -2963,9 +2964,10 @@ known:
        }
 
        create_proc_file();
-       device_add(&udc->gadget.dev);
-       return 0;
-
+       status = device_add(&udc->gadget.dev);
+       if (!status)
+               return status;
+       /* If fail, fall through */
 #ifdef USE_ISO
 cleanup3:
        free_irq(pdev->resource[2].start, udc);