Skip to content
Snippets Groups Projects
Commit 0fa5999b authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Marek Vasut
Browse files

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: default avatarPaul Kocialkowski <contact@paulk.fr>
parent b21144eb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment