diff options
Diffstat (limited to 'drivers/usb/misc/phidgetmotorcontrol.c')
-rw-r--r-- | drivers/usb/misc/phidgetmotorcontrol.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/misc/phidgetmotorcontrol.c b/drivers/usb/misc/phidgetmotorcontrol.c index 9b4696f21b22..38088b44349e 100644 --- a/drivers/usb/misc/phidgetmotorcontrol.c +++ b/drivers/usb/misc/phidgetmotorcontrol.c | |||
@@ -365,9 +365,8 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic | |||
365 | } while(value); | 365 | } while(value); |
366 | mc->dev_no = bit; | 366 | mc->dev_no = bit; |
367 | 367 | ||
368 | mc->dev = device_create_drvdata(phidget_class, &mc->udev->dev, | 368 | mc->dev = device_create(phidget_class, &mc->udev->dev, MKDEV(0, 0), mc, |
369 | MKDEV(0, 0), mc, | 369 | "motorcontrol%d", mc->dev_no); |
370 | "motorcontrol%d", mc->dev_no); | ||
371 | if (IS_ERR(mc->dev)) { | 370 | if (IS_ERR(mc->dev)) { |
372 | rc = PTR_ERR(mc->dev); | 371 | rc = PTR_ERR(mc->dev); |
373 | mc->dev = NULL; | 372 | mc->dev = NULL; |