Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97058
b: refs/heads/master
c: c013d04
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 20, 2008
1 parent e8f04d4 commit 8aad11a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: bfd3a5a96c1dd432303fdf2283e770419f6aecb3
refs/heads/master: c013d040b70bc2bff5465917ebb255a70b650396
6 changes: 3 additions & 3 deletions trunk/drivers/usb/core/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,12 +818,12 @@ static int usb_register_bus(struct usb_bus *bus)
set_bit (busnum, busmap.busmap);
bus->busnum = busnum;

bus->dev = device_create(usb_host_class, bus->controller, MKDEV(0, 0),
"usb_host%d", busnum);
bus->dev = device_create_drvdata(usb_host_class, bus->controller,
MKDEV(0, 0), bus,
"usb_host%d", busnum);
result = PTR_ERR(bus->dev);
if (IS_ERR(bus->dev))
goto error_create_class_dev;
dev_set_drvdata(bus->dev, bus);

/* Add it to the local list of buses */
list_add (&bus->bus_list, &usb_bus_list);
Expand Down

0 comments on commit 8aad11a

Please sign in to comment.