From: Mugunthan V N Date: Thu, 17 Nov 2016 09:08:09 +0000 (+0530) Subject: am33xx: board: probe misc drivers to register musb devices X-Git-Tag: v2017.01-rc1~70^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3aec2648698d9be14ab8b3eeb7d4d7d3783379ac;p=u-boot am33xx: board: probe misc drivers to register musb devices MUSB wrapper driver is bound as MISC device and underlying usb devices are bind to usb drivers based on dr_mode, so probing the MISC wrapper driver to register musb devices. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c index 80b729aa13..2ce7790be6 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++ b/arch/arm/mach-omap2/am33xx/board.c @@ -197,6 +197,13 @@ int arch_misc_init(void) musb_register(&otg1_plat, &otg1_board_data, (void *)USB1_OTG_BASE); #endif +#else + struct udevice *dev; + int ret; + + ret = uclass_first_device(UCLASS_MISC, &dev); + if (ret || !dev) + return ret; #endif return 0; }