summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-01-14 17:29:43 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-23 19:51:05 +0800
commit800f181e7ae7cd96b0595ac86af898eadbe72675 (patch)
tree9e6ef739db8d51bd4c150c2eb487457dce9b05ea /drivers/usb/core
parenta4e30cd9163ac4a44454ef2e43bf01c6439c08e0 (diff)
downloadbarebox-800f181e7ae7cd96b0595ac86af898eadbe72675.tar.gz
barebox-800f181e7ae7cd96b0595ac86af898eadbe72675.tar.xz
usb: fix driver name
use the usb_driver name otherwise we will have a NULL driver entry in devinfo Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index ba23e0e3a0..bd2938d2b7 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -1275,6 +1275,7 @@ static int usb_hub_probe(struct usb_device *dev, int ifnum)
int usb_driver_register(struct usb_driver *drv)
{
+ drv->driver.name = drv->name;
drv->driver.bus = &usb_bus_type;
return register_driver(&drv->driver);
}