Message ID | 05DA4554-3E97-4545-B2FC-E458E3C0F078@mindspring.com (mailing list archive) |
---|---|
State | Awaiting Upstream, archived |
Delegated to: | Felipe Balbi |
Headers | show |
Hi, On Sun, Aug 30, 2009 at 12:38:07AM +0200, ext Eric Witcher wrote: > From: Ming Lei <tom.leiming@gmail.com> > > This patch fixes the .probe failure of twl4030_usb driver if > it is compiled into kernel. > > Since twl4030_usb USB transceiver .probe depends on > twl4030-regulator, marking twl4030_usb_init as subsys_initcall_sync > can make it called after twl4030-regulator initialization is finished, > then twl4030_usb USB transceiver driver can be probed successfully. > > Signed-off-by: Ming Lei <tom.leiming@gmail.com> > Tested-by: Eric Witcher <ewitcher@mindspring.com> Acked-by: Felipe Balbi <felipe.balbi@nokia.com> should go to Greg KH on linux-usb
diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg/twl4030- usb.c index 9e3e7a5..d1852d4 100644 --- a/drivers/usb/otg/twl4030-usb.c +++ b/drivers/usb/otg/twl4030-usb.c @@ -774,7 +774,7 @@ static int __init twl4030_usb_init(void) { return platform_driver_register(&twl4030_usb_driver); } -subsys_initcall(twl4030_usb_init); +subsys_initcall_sync(twl4030_usb_init); static void __exit twl4030_usb_exit(void) {