]> 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 f0113c17cc5afd1d0c6b01173161f57fabc5ea30..38088b44349eb86695fc837fe54fc84ee1e2e482 100644 (file)
@@ -365,7 +365,7 @@ 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,
+       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);
@@ -373,8 +373,6 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic
                goto out;
        }
 
-       dev_set_drvdata(mc->dev, mc);
-
        if (usb_submit_urb(mc->irq, GFP_KERNEL)) {
                rc = -EIO;
                goto out;