aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/otg
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2009-08-01 08:39:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-23 09:46:33 -0400
commit0ffd3b2902e28b13d8379df0f09a55668f330f77 (patch)
treeb892dfb1bf249c0855e56a013b8d5066b41ab46f /drivers/usb/otg
parentc740d0d80d385b178c319f3d6e627ade8f732488 (diff)
USB: otg: twl4030-usb.c: mark .init as subsys_initcall_sync
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> Cc: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/otg')
-rw-r--r--drivers/usb/otg/twl4030-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg/twl4030-usb.c
index 9e3e7a5c258b..d1852d475893 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)
774{ 774{
775 return platform_driver_register(&twl4030_usb_driver); 775 return platform_driver_register(&twl4030_usb_driver);
776} 776}
777subsys_initcall(twl4030_usb_init); 777subsys_initcall_sync(twl4030_usb_init);
778 778
779static void __exit twl4030_usb_exit(void) 779static void __exit twl4030_usb_exit(void)
780{ 780{