summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/usb.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-05-23 16:02:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-23 22:37:01 +0200
commitbd14edecafb0d6bb7497c18ddfbf2ab4dfa2335c (patch)
tree67b458ebba1406741b0fabbbbd65e09ba10e0223 /drivers/usb/storage/usb.c
parent5e490ffd5dc998544a0b1e74bcdbffabcc145814 (diff)
downloadbarebox-bd14edecafb0d6bb7497c18ddfbf2ab4dfa2335c.tar.gz
usb storage: fix driver name
We have to set the name in struct usb_driver, not the one in struct driver_d which gets overwritten with usb_driver->name during registration. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/storage/usb.c')
-rw-r--r--drivers/usb/storage/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index fa3691a..2adc2ef 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -613,7 +613,7 @@ static struct usb_device_id usb_storage_usb_ids[] = {
***********************************************************************/
static struct usb_driver usb_storage_driver = {
- .driver.name = "usb-storage",
+ .name = "usb-storage",
.id_table = usb_storage_usb_ids,
.probe = usb_stor_probe,
.disconnect = usb_stor_disconnect,