diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-08-04 17:04:12 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-05 17:20:34 +0200 |
commit | 0fa5999bea643a81072f1e71a2fae976d00018a8 (patch) | |
tree | be6c92be4a3d19495762c9748ca76ca69584cf07 /drivers/usb/host | |
parent | b21144eb76477b9aceb223407d8eb2ac1a134c9f (diff) | |
download | u-boot-imx-0fa5999bea643a81072f1e71a2fae976d00018a8.zip u-boot-imx-0fa5999bea643a81072f1e71a2fae976d00018a8.tar.gz u-boot-imx-0fa5999bea643a81072f1e71a2fae976d00018a8.tar.bz2 |
usb: USB storage-specific part ifdef in uclass
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/usb-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index c5d1e7f..b17a7d7 100644 --- 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; |