diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-12 14:07:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 14:17:28 -0500 |
commit | 9f9af82ff3e3927d29474049675303284e1266f7 (patch) | |
tree | d8c9b940d6fa1682579b3445d7930e4d3818c135 /drivers/usb/core | |
parent | c793d08ecd944b1a180c6712bb47825e37cc0626 (diff) |
usb: core: Remove superfluous name casts
device_driver.name is "const char *"
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 47aade2a5e74..8d989b1d3dc5 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c | |||
@@ -839,7 +839,7 @@ int usb_register_device_driver(struct usb_device_driver *new_udriver, | |||
839 | return -ENODEV; | 839 | return -ENODEV; |
840 | 840 | ||
841 | new_udriver->drvwrap.for_devices = 1; | 841 | new_udriver->drvwrap.for_devices = 1; |
842 | new_udriver->drvwrap.driver.name = (char *) new_udriver->name; | 842 | new_udriver->drvwrap.driver.name = new_udriver->name; |
843 | new_udriver->drvwrap.driver.bus = &usb_bus_type; | 843 | new_udriver->drvwrap.driver.bus = &usb_bus_type; |
844 | new_udriver->drvwrap.driver.probe = usb_probe_device; | 844 | new_udriver->drvwrap.driver.probe = usb_probe_device; |
845 | new_udriver->drvwrap.driver.remove = usb_unbind_device; | 845 | new_udriver->drvwrap.driver.remove = usb_unbind_device; |
@@ -900,7 +900,7 @@ int usb_register_driver(struct usb_driver *new_driver, struct module *owner, | |||
900 | return -ENODEV; | 900 | return -ENODEV; |
901 | 901 | ||
902 | new_driver->drvwrap.for_devices = 0; | 902 | new_driver->drvwrap.for_devices = 0; |
903 | new_driver->drvwrap.driver.name = (char *) new_driver->name; | 903 | new_driver->drvwrap.driver.name = new_driver->name; |
904 | new_driver->drvwrap.driver.bus = &usb_bus_type; | 904 | new_driver->drvwrap.driver.bus = &usb_bus_type; |
905 | new_driver->drvwrap.driver.probe = usb_probe_interface; | 905 | new_driver->drvwrap.driver.probe = usb_probe_interface; |
906 | new_driver->drvwrap.driver.remove = usb_unbind_interface; | 906 | new_driver->drvwrap.driver.remove = usb_unbind_interface; |