]> git.baikalelectronics.ru Git - kernel.git/commit
USB: otg: twl4030-usb.c: mark .init as subsys_initcall_sync
authorMing Lei <tom.leiming@gmail.com>
Sat, 1 Aug 2009 12:39:57 +0000 (20:39 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:33 +0000 (06:46 -0700)
commitd46f555b5664b2e1dcba3542aa056f7bedb06d11
treeb892dfb1bf249c0855e56a013b8d5066b41ab46f
parent9c9bf1a0b0105d6a6993ca83e30c18b8b5fa8281
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>
drivers/usb/otg/twl4030-usb.c