diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2018-11-29 12:52:44 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-12-07 18:31:45 +0300 |
commit | 20bebd866690bb09dd1c1cb8ac674c3b17b63c6d (patch) | |
tree | d590471ca66e6993971b45521fd017d8e97aecec /drivers/usb/dwc3 | |
parent | ff8d75583487eb69bcb6f036088d979c76db3753 (diff) | |
download | u-boot-20bebd866690bb09dd1c1cb8ac674c3b17b63c6d.tar.xz |
dwc3_generic: do not probe the USB device driver when it's bound
The driver will be probed when usb_gadget_initialize() is called.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/dwc3-generic.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 47cc140ddf..681b5c73da 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -70,21 +70,14 @@ static int dwc3_generic_peripheral_ofdata_to_platdata(struct udevice *dev) return 0; } -static int dwc3_generic_peripheral_bind(struct udevice *dev) -{ - return device_probe(dev); -} - U_BOOT_DRIVER(dwc3_generic_peripheral) = { .name = "dwc3-generic-peripheral", .id = UCLASS_USB_DEV_GENERIC, .ofdata_to_platdata = dwc3_generic_peripheral_ofdata_to_platdata, .probe = dwc3_generic_peripheral_probe, .remove = dwc3_generic_peripheral_remove, - .bind = dwc3_generic_peripheral_bind, .platdata_auto_alloc_size = sizeof(struct usb_platdata), .priv_auto_alloc_size = sizeof(struct dwc3), - .flags = DM_FLAG_ALLOC_PRIV_DMA, }; #endif |