diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-20 07:36:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-23 21:15:13 +0200 |
commit | 72b0a6503f8519980a4734bcdbb35a9ec6cd6347 (patch) | |
tree | 12513db7ebad9cbe7ad92b0de96922e8bef7b763 /drivers/usb/core | |
parent | 33a8fa16c68139c50e839f647cc0b34250c75193 (diff) | |
download | barebox-72b0a6503f8519980a4734bcdbb35a9ec6cd6347.tar.gz barebox-72b0a6503f8519980a4734bcdbb35a9ec6cd6347.tar.xz |
driver: register bus
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 48bc121160..3ab06589d4 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -1422,3 +1422,8 @@ struct bus_type usb_bus_type = { .remove = usb_remove, }; +static int usb_bus_init(void) +{ + return bus_register(&usb_bus_type); +} +pure_initcall(usb_bus_init); |