]> err.no Git - linux-2.6/blobdiff - drivers/usb/gadget/pxa27x_udc.c
Merge master.kernel.org:/home/rmk/linux-2.6-arm
[linux-2.6] / drivers / usb / gadget / pxa27x_udc.c
index 9c0e82ec5c43b94fefbdc58cbfc0f88549cf01e1..7cbc78a6853d846689b000842cf264466a67dedc 100644 (file)
 #include <linux/irq.h>
 
 #include <asm/byteorder.h>
-#include <asm/hardware.h>
+#include <mach/hardware.h>
 
 #include <linux/usb.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
-#include <asm/arch/pxa2xx-regs.h> /* FIXME: for PSSR */
-#include <asm/arch/udc.h>
+#include <mach/pxa2xx-regs.h> /* FIXME: for PSSR */
+#include <mach/udc.h>
 
 #include "pxa27x_udc.h"
 
@@ -1575,7 +1575,6 @@ static void udc_enable(struct pxa_udc *udc)
 {
        udc_writel(udc, UDCICR0, 0);
        udc_writel(udc, UDCICR1, 0);
-       udc_writel(udc, UP2OCR, UP2OCR_HXOE);
        udc_clear_mask_UDCCR(udc, UDCCR_UDE);
 
        clk_enable(udc->clk);
@@ -1623,7 +1622,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
        struct pxa_udc *udc = the_controller;
        int retval;
 
-       if (!driver || driver->speed != USB_SPEED_FULL || !driver->bind
+       if (!driver || driver->speed < USB_SPEED_FULL || !driver->bind
                        || !driver->disconnect || !driver->setup)
                return -EINVAL;
        if (!udc)