diff options
Diffstat (limited to 'drivers/hid/hidraw.c')
-rw-r--r-- | drivers/hid/hidraw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 497e0d1dd3c3..af3edb98df43 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c | |||
@@ -326,9 +326,8 @@ int hidraw_connect(struct hid_device *hid) | |||
326 | goto out; | 326 | goto out; |
327 | } | 327 | } |
328 | 328 | ||
329 | dev->dev = device_create_drvdata(hidraw_class, NULL, | 329 | dev->dev = device_create(hidraw_class, NULL, MKDEV(hidraw_major, minor), |
330 | MKDEV(hidraw_major, minor), NULL, | 330 | NULL, "%s%d", "hidraw", minor); |
331 | "%s%d", "hidraw", minor); | ||
332 | 331 | ||
333 | if (IS_ERR(dev->dev)) { | 332 | if (IS_ERR(dev->dev)) { |
334 | spin_lock(&minors_lock); | 333 | spin_lock(&minors_lock); |