Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97057
b: refs/heads/master
c: bfd3a5a
h: refs/heads/master
i:
  97055: 47801ab
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 20, 2008
1 parent dc46b7b commit e8f04d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 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: c5fb920aec2090a44aa4c33546b9f3c3affa538c
refs/heads/master: bfd3a5a96c1dd432303fdf2283e770419f6aecb3
6 changes: 3 additions & 3 deletions trunk/drivers/usb/misc/phidgetkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,14 +595,14 @@ static int interfacekit_probe(struct usb_interface *intf, const struct usb_devic
} while(value);
kit->dev_no = bit;

kit->dev = device_create(phidget_class, &kit->udev->dev, 0,
"interfacekit%d", kit->dev_no);
kit->dev = device_create_drvdata(phidget_class, &kit->udev->dev,
MKDEV(0, 0), kit,
"interfacekit%d", kit->dev_no);
if (IS_ERR(kit->dev)) {
rc = PTR_ERR(kit->dev);
kit->dev = NULL;
goto out;
}
dev_set_drvdata(kit->dev, kit);

if (usb_submit_urb(kit->irq, GFP_KERNEL)) {
rc = -EIO;
Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/usb/misc/phidgetmotorcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,15 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic
} while(value);
mc->dev_no = bit;

mc->dev = device_create(phidget_class, &mc->udev->dev, 0,
"motorcontrol%d", mc->dev_no);
mc->dev = device_create_drvdata(phidget_class, &mc->udev->dev,
MKDEV(0, 0), mc,
"motorcontrol%d", mc->dev_no);
if (IS_ERR(mc->dev)) {
rc = PTR_ERR(mc->dev);
mc->dev = NULL;
goto out;
}

dev_set_drvdata(mc->dev, mc);

if (usb_submit_urb(mc->irq, GFP_KERNEL)) {
rc = -EIO;
goto out;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/misc/phidgetservo.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ servo_probe(struct usb_interface *interface, const struct usb_device_id *id)
} while (value);
dev->dev_no = bit;

dev->dev = device_create(phidget_class, &dev->udev->dev, 0,
"servo%d", dev->dev_no);
dev->dev = device_create_drvdata(phidget_class, &dev->udev->dev,
MKDEV(0, 0), dev,
"servo%d", dev->dev_no);
if (IS_ERR(dev->dev)) {
rc = PTR_ERR(dev->dev);
dev->dev = NULL;
goto out;
}
dev_set_drvdata(dev->dev, dev);

servo_count = dev->type & SERVO_COUNT_QUAD ? 4 : 1;

Expand Down

0 comments on commit e8f04d4

Please sign in to comment.