X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fusb%2Fcore%2Fdevio.c;h=54a350ccd0333870fc4a7c01371f2dd1e7042d78;hb=a80d5ff0d7d3a99e962a02c36acf97ba5a70b86e;hp=5580c6e59baefff99fc8553476e5b17f27f6b399;hpb=4ddd9ec17af6a7c539f4a12758905340c00847d6;p=linux-2.6-omap-h63xx.git diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 5580c6e59ba..54a350ccd03 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -552,14 +552,15 @@ static int check_ctrlrecip(struct dev_state *ps, unsigned int requesttype, static int match_devt(struct device *dev, void *data) { - return (dev->devt == (dev_t) data); + return dev->devt == (dev_t) (unsigned long) data; } static struct usb_device *usbdev_lookup_by_devt(dev_t devt) { struct device *dev; - dev = bus_find_device(&usb_bus_type, NULL, (void *) devt, match_devt); + dev = bus_find_device(&usb_bus_type, NULL, + (void *) (unsigned long) devt, match_devt); if (!dev) return NULL; return container_of(dev, struct usb_device, dev);