diff options
-rw-r--r-- | drivers/usb/core/usb.c | 5 | ||||
-rw-r--r-- | include/usb/usb.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 70ded6ded1..1e48c1d0a8 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -102,6 +102,11 @@ int usb_register_host(struct usb_host *host) return 0; } +void usb_unregister_host(struct usb_host *host) +{ + list_del(&host->list); +} + /** * set configuration number to configuration */ diff --git a/include/usb/usb.h b/include/usb/usb.h index 9aab06c87c..eb2eeb8db3 100644 --- a/include/usb/usb.h +++ b/include/usb/usb.h @@ -157,6 +157,7 @@ struct usb_host { }; int usb_register_host(struct usb_host *); +void usb_unregister_host(struct usb_host *host); int usb_host_detect(struct usb_host *host); |