Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104622
b: refs/heads/master
c: a80d5ff
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent 0dd0d29 commit a33e9ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ddd9ec17af6a7c539f4a12758905340c00847d6
refs/heads/master: a80d5ff0d7d3a99e962a02c36acf97ba5a70b86e
5 changes: 3 additions & 2 deletions trunk/drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a33e9ad

Please sign in to comment.