]> git.baikalelectronics.ru Git - uboot.git/commit
dm: usb: gadget: Fix boot breakage on sunxi platforms
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 21 Dec 2018 08:50:21 +0000 (09:50 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 10 Jan 2019 17:53:03 +0000 (18:53 +0100)
commitc4f0eaac2f81672705127919bd311ba788d8afeb
tree87d3392c6e54e9cd8dab1c7c143e8f1c87166937
parent86a15335c08b08f10a916c0107107037b722be71
dm: usb: gadget: Fix boot breakage on sunxi platforms

Fixes commit 182a51d6a74d ("dm: usb: create a new UCLASS ID for USB gadget
devices")

The UCLASS_DRIVER for id UCLASS_USB_GADGET_GENERIC needs to be declared
even for platforms that do not enable DM_USB_GADGET. Otherwise the driver
for their usb peripheral controller fails to bind.

Reported-by: Priit Laes <plaes@plaes.org>
Reported-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: Priit Laes <plaes@plaes.org>
Acked-by: Jagan Teki <jagan@openedev.com>
drivers/usb/gadget/udc/Makefile
drivers/usb/gadget/udc/udc-uclass.c