summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb-new/omap2430.c
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2018-11-29 10:52:46 +0100
committerMarek Vasut <marex@denx.de>2018-12-07 16:31:45 +0100
commit0131162439508801b9f8a330fa731f04273c9337 (patch)
tree5d94343d01e2ce401774516cd7783d527f4b5941 /drivers/usb/musb-new/omap2430.c
parentd648a50c0a27452a5439e7982b23b97c64820430 (diff)
downloadu-boot-0131162439508801b9f8a330fa731f04273c9337.tar.gz
u-boot-0131162439508801b9f8a330fa731f04273c9337.tar.xz
u-boot-0131162439508801b9f8a330fa731f04273c9337.zip
dm: usb: create a new UCLASS ID for USB gadget devices
UCLASS_USB_DEV_GENERIC was meant for USB devices connected to host controllers, not gadget devices. Adding a new UCLASS for gadget devices alone. Also move the generic DM code for USB gadgets in a separate file for clarity. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'drivers/usb/musb-new/omap2430.c')
-rw-r--r--drivers/usb/musb-new/omap2430.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c
index 58aed72b7d..32743aa72c 100644
--- a/drivers/usb/musb-new/omap2430.c
+++ b/drivers/usb/musb-new/omap2430.c
@@ -263,7 +263,7 @@ U_BOOT_DRIVER(omap2430_musb) = {
#ifdef CONFIG_USB_MUSB_HOST
.id = UCLASS_USB,
#else
- .id = UCLASS_USB_DEV_GENERIC,
+ .id = UCLASS_USB_GADGET_GENERIC,
#endif
.of_match = omap2430_musb_ids,
.ofdata_to_platdata = omap2430_musb_ofdata_to_platdata,