Hi,

On Sat, Jun 04, 2016 at 05:17:50PM +0200, Hans de Goede wrote:
> Stop using the return value of platform_device_register_full() to get to
> the struct musb in sunxi_musb_work(). If a gadget has been registered
> (insmod-ed) before the musb driver, then musb_start will get called
> from the musb_core probe function and sunxi_musb_work() may run before
> platform_device_register_full() has returned.
> 
> Instead store a pointer to struct musb in struct sunxi_glue when
> sunxi_musb_enable gets called. Note that sunxi_musb_enable always gets
> called before sunxi_musb_work() can run.
> 
> Signed-off-by: Hans de Goede <[email protected]>

Signed-off-by: Bin Liu <[email protected]>

Regards,
-Bin.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to