]> git.karo-electronics.de Git - karo-tx-linux.git/commit
davinci: DM644x EVM: register MUSB device earlier
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sun, 13 Mar 2011 20:06:59 +0000 (20:06 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 20:04:15 +0000 (13:04 -0700)
commitde988be1f66ecc6ea96c11dac2e4c5bc44de9615
tree6fb9a85e0be9e5574c7ad8d087acf56997bd1952
parent4a68b18f8a4da0b70b49972f205ab2cd4b886a96
davinci: DM644x EVM: register MUSB device earlier

commit 60d97a840175d3becb2e6de36537a5cdfc0ec3a9 upstream.

The MUSB driver doesn't see its platform device on DM644x EVM board anymore
since commit 73b089b052a69020b953312a624a6e1eb5b81fab (usb: musb: split davinci
to its own platform_driver) because the new probe is called as subsys_initcall()
now, and the device is registered later than that by the board code.  Move the
registration to davinci_evm_init() -- it's safe to do so because the MUSB core
device still gets initialized as fs_initcall() -- which is late enough for the
I2C GPIO expander (which controls VBUS) to be initialized.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-davinci/board-dm644x-evm.c