usb: ulpi: ulpi_init should be executed in subsys_initcall
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 4 Jun 2015 12:44:14 +0000 (20:44 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 20 Jul 2015 17:57:46 +0000 (12:57 -0500)
commit4696b8874d7de39850931888bc9f2aa12d29fb46
treec18093bf8dc6752c7cd66518fa845b7e083c01a0
parent52721d9d3334c1cb1f76219a161084094ec634dc
usb: ulpi: ulpi_init should be executed in subsys_initcall

Phy drivers and the ulpi interface providers depend on the
registration of the ulpi bus.  Ulpi registers the bus in
module_init(). This could cause unnecessary bus users'
probe delays. i.e. unnecessary -EPROBE_DEFER happening on
ulpi_drivers in case they're registered before ulpi bus
itself.

Reported-by: Zhuo Qiuxu <qiuxu.zhuo@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/common/ulpi.c