summaryrefslogtreecommitdiff
path: root/drivers/usb/host/usb_bootdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/usb_bootdev.c')
-rw-r--r--drivers/usb/host/usb_bootdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/usb_bootdev.c b/drivers/usb/host/usb_bootdev.c
index 32919f9928..06e8f61aa1 100644
--- a/drivers/usb/host/usb_bootdev.c
+++ b/drivers/usb/host/usb_bootdev.c
@@ -22,6 +22,9 @@ static int usb_bootdev_bind(struct udevice *dev)
static int usb_bootdev_hunt(struct bootdev_hunter *info, bool show)
{
+ if (usb_started)
+ return 0;
+
return usb_init();
}