]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/misc/phidgetmotorcontrol.c
device create: usb: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / drivers / usb / misc / phidgetmotorcontrol.c
index 9b4696f21b22849079b062336b7ef93aa1ed757e..38088b44349eb86695fc837fe54fc84ee1e2e482 100644 (file)
@@ -365,9 +365,8 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic
        } while(value);
        mc->dev_no = bit;
 
-       mc->dev = device_create_drvdata(phidget_class, &mc->udev->dev,
-                                       MKDEV(0, 0), mc,
-                                       "motorcontrol%d", mc->dev_no);
+       mc->dev = device_create(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;