diff options
Diffstat (limited to 'drivers/usb/core/file.c')
-rw-r--r-- | drivers/usb/core/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c index 6b1b229e38cd..55f7f310924b 100644 --- a/drivers/usb/core/file.c +++ b/drivers/usb/core/file.c | |||
@@ -196,9 +196,9 @@ int usb_register_dev(struct usb_interface *intf, | |||
196 | ++temp; | 196 | ++temp; |
197 | else | 197 | else |
198 | temp = name; | 198 | temp = name; |
199 | intf->usb_dev = device_create_drvdata(usb_class->class, &intf->dev, | 199 | intf->usb_dev = device_create(usb_class->class, &intf->dev, |
200 | MKDEV(USB_MAJOR, minor), NULL, | 200 | MKDEV(USB_MAJOR, minor), NULL, |
201 | "%s", temp); | 201 | "%s", temp); |
202 | if (IS_ERR(intf->usb_dev)) { | 202 | if (IS_ERR(intf->usb_dev)) { |
203 | down_write(&minor_rwsem); | 203 | down_write(&minor_rwsem); |
204 | usb_minors[intf->minor] = NULL; | 204 | usb_minors[intf->minor] = NULL; |