Commit 0fa5999bea643a81072f1e71a2fae976d00018a8

Authored by Paul Kocialkowski
Committed by Marek Vasut
1 parent b21144eb76

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/usb/host/usb-uclass.c
... ... @@ -173,7 +173,9 @@
173 173 uclass_foreach_dev(dev, uc)
174 174 usb_emul_reset(dev);
175 175 #endif
  176 +#ifdef CONFIG_USB_STORAGE
176 177 usb_stor_reset();
  178 +#endif
177 179 usb_hub_reset();
178 180 uc_priv->companion_device_count = 0;
179 181 usb_started = 0;