projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b21144e
)
usb: USB storage-specific part ifdef in uclass
author
Paul Kocialkowski
<contact@paulk.fr>
Tue, 4 Aug 2015 15:04:12 +0000
(17:04 +0200)
committer
Marek Vasut
<marex@denx.de>
Wed, 5 Aug 2015 15:20:34 +0000
(17:20 +0200)
usb_stor_reset is only defined when USB storage support is enabled, thus the
function is not declared when such support is missing.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
drivers/usb/host/usb-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/usb-uclass.c
b/drivers/usb/host/usb-uclass.c
index c5d1e7feb9d0e5da7e31ae2d3abe4c00a6b86350..b17a7d762e03350fd01bb1225d59a5ce4f4a5701 100644
(file)
--- a/
drivers/usb/host/usb-uclass.c
+++ b/
drivers/usb/host/usb-uclass.c
@@
-173,7
+173,9
@@
int usb_stop(void)
uclass_foreach_dev(dev, uc)
usb_emul_reset(dev);
#endif
+#ifdef CONFIG_USB_STORAGE
usb_stor_reset();
+#endif
usb_hub_reset();
uc_priv->companion_device_count = 0;
usb_started = 0;