diff options
Diffstat (limited to 'drivers/usb/misc/phidgetkit.c')
-rw-r--r-- | drivers/usb/misc/phidgetkit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c index 4cfa25b0f44e..cc8e0a926f99 100644 --- a/drivers/usb/misc/phidgetkit.c +++ b/drivers/usb/misc/phidgetkit.c | |||
@@ -595,9 +595,8 @@ static int interfacekit_probe(struct usb_interface *intf, const struct usb_devic | |||
595 | } while(value); | 595 | } while(value); |
596 | kit->dev_no = bit; | 596 | kit->dev_no = bit; |
597 | 597 | ||
598 | kit->dev = device_create_drvdata(phidget_class, &kit->udev->dev, | 598 | kit->dev = device_create(phidget_class, &kit->udev->dev, MKDEV(0, 0), |
599 | MKDEV(0, 0), kit, | 599 | kit, "interfacekit%d", kit->dev_no); |
600 | "interfacekit%d", kit->dev_no); | ||
601 | if (IS_ERR(kit->dev)) { | 600 | if (IS_ERR(kit->dev)) { |
602 | rc = PTR_ERR(kit->dev); | 601 | rc = PTR_ERR(kit->dev); |
603 | kit->dev = NULL; | 602 | kit->dev = NULL; |