Skip to contentSkip to conversation

USB:otg:twl4030-usb.c: mark .init as subsys_initcall_sync

PATCH New [email protected] 1 participant 1 message Aug 1, 2009 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB:otg:twl4030-usb.c: mark .init as subsys_initcall_sync

From: Ming Lei <[email protected]>

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.

---
 drivers/usb/otg/twl4030-usb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/otg/twl4030-usb.c +1 -1
index 9e3e7a5..d1852d4 100644
@@ -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)
 {
Signature · 6 lines
1.6.0.GIT

--
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