]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hid/hidraw.c
device create: hid: convert device_create to device_create_drvdata
[linux-2.6-omap-h63xx.git] / drivers / hid / hidraw.c
index 2fde6c63f47dffa2d89c224cd15c1be215d4d20e..0c6b4d4e7e2700ee9135d2729b8c388f7d8c6118 100644 (file)
@@ -322,8 +322,9 @@ int hidraw_connect(struct hid_device *hid)
                goto out;
        }
 
-       dev->dev = device_create(hidraw_class, NULL, MKDEV(hidraw_major, minor),
-                               "%s%d", "hidraw", minor);
+       dev->dev = device_create_drvdata(hidraw_class, NULL,
+                                        MKDEV(hidraw_major, minor), NULL,
+                                        "%s%d", "hidraw", minor);
 
        if (IS_ERR(dev->dev)) {
                spin_lock(&minors_lock);