usb: core: hub: controller driver name may be NULL
authorPeter Chen <peter.chen@nxp.com>
Wed, 19 Jul 2017 06:40:53 +0000 (14:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jul 2017 13:56:53 +0000 (15:56 +0200)
commit1bb90cf0462c9a07cb428e9dd9665041fe7f9e18
tree8117559e9b2799a337aeae5d0706115df7533702
parentd9241ff2f2acbc9241bcb4fb58c36d6a56f8c73a
usb: core: hub: controller driver name may be NULL

The controller driver may be NULL if the controller device
is the middle device between platform device and roothub.
This middle device may not need a device driver due to all
hardware control can be at platform device driver, this
platform device is usually a dual-role USB controller device.

The benefit of using this middle device is we can keep both
controller device's private data (known as struct usb_hcd)
for USB core use, and platform device's private data for
platform driver use.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c