]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/gadget/s3c2410_udc.c
misc latin1 to utf8 conversions
[~andy/linux] / drivers / usb / gadget / s3c2410_udc.c
index 8d31848aab091534ae998e588f7803c88ea121c9..fac4c650d4bb86bf30afc40bdc37dfea24bb8da5 100644 (file)
@@ -3,23 +3,13 @@
  *
  * Samsung S3C24xx series on-chip full speed USB device controllers
  *
- * Copyright (C) 2004-2007 Herbert Pötzl - Arnaud Patard
+ * Copyright (C) 2004-2007 Herbert Pötzl - Arnaud Patard
  *     Additional cleanups by Ben Dooks <ben-linux@fluff.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
  */
 
 #include <linux/module.h>
@@ -61,7 +51,7 @@
 
 #define DRIVER_DESC    "S3C2410 USB Device Controller Gadget"
 #define DRIVER_VERSION "29 Apr 2007"
-#define DRIVER_AUTHOR  "Herbert Pötzl <herbert@13thfloor.at>, " \
+#define DRIVER_AUTHOR  "Herbert Pötzl <herbert@13thfloor.at>, " \
                        "Arnaud Patard <arnaud.patard@rtp-net.org>"
 
 static const char              gadget_name[] = "s3c2410_udc";
@@ -1082,7 +1072,7 @@ static int s3c2410_udc_ep_enable(struct usb_ep *_ep,
        if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)
                return -ESHUTDOWN;
 
-       max = le16_to_cpu(desc->wMaxPacketSize) & 0x1fff;
+       max = usb_endpoint_maxp(desc) & 0x1fff;
 
        local_irq_save (flags);
        _ep->maxpacket = max & 0x7ff;
@@ -1903,7 +1893,7 @@ static int s3c2410_udc_probe(struct platform_device *pdev)
 
        /* irq setup after old hardware state is cleaned up */
        retval = request_irq(IRQ_USBD, s3c2410_udc_irq,
-                            IRQF_DISABLED, gadget_name, udc);
+                            0, gadget_name, udc);
 
        if (retval != 0) {
                dev_err(dev, "cannot get irq %i, err %d\n", IRQ_USBD, retval);
@@ -1927,7 +1917,7 @@ static int s3c2410_udc_probe(struct platform_device *pdev)
                }
 
                retval = request_irq(irq, s3c2410_udc_vbus_irq,
-                                    IRQF_DISABLED | IRQF_TRIGGER_RISING
+                                    IRQF_TRIGGER_RISING
                                     | IRQF_TRIGGER_FALLING | IRQF_SHARED,
                                     gadget_name, udc);