diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 01:25:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 12:52:52 -0400 |
commit | 53f4654272df7c51064825024340554b39c9efba (patch) | |
tree | e3e7b82a6bb0040ffbd267b250be2720704b98f2 /drivers/usb/core/file.c | |
parent | 51d172d5f3a193e4b8f76179b2e55d7a36b94117 (diff) |
[PATCH] Driver Core: fix up all callers of class_device_create()
The previous patch adding the ability to nest struct class_device
changed the paramaters to the call class_device_create(). This patch
fixes up all in-kernel users of the function.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/file.c')
-rw-r--r-- | drivers/usb/core/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c index 65ca131cc44c..78cb4be9529f 100644 --- a/drivers/usb/core/file.c +++ b/drivers/usb/core/file.c | |||
@@ -172,7 +172,9 @@ int usb_register_dev(struct usb_interface *intf, | |||
172 | ++temp; | 172 | ++temp; |
173 | else | 173 | else |
174 | temp = name; | 174 | temp = name; |
175 | intf->class_dev = class_device_create(usb_class, MKDEV(USB_MAJOR, minor), &intf->dev, "%s", temp); | 175 | intf->class_dev = class_device_create(usb_class, NULL, |
176 | MKDEV(USB_MAJOR, minor), | ||
177 | &intf->dev, "%s", temp); | ||
176 | if (IS_ERR(intf->class_dev)) { | 178 | if (IS_ERR(intf->class_dev)) { |
177 | spin_lock (&minor_lock); | 179 | spin_lock (&minor_lock); |
178 | usb_minors[intf->minor] = NULL; | 180 | usb_minors[intf->minor] = NULL; |