summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 40a78987e4..0f25c13998 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -991,7 +991,7 @@ static void cb_flash(struct f_fastboot *f_fb, const char *cmd)
.flags = BBU_FLAG_YES,
};
- if (!barebox_update_handler_exists(&data))
+ if (!bbu_find_handler_by_device(data.devicefile))
goto copy;
fastboot_tx_print(f_fb, "INFOThis is a barebox image...");