usbip: vhci-hcd: Rework vhci_hcd_init
A vhci struct is added as the platform-specific data to the vhci platform device, in order to get the vhci by its platform device. This is done in vhci_hcd_init(). Signed-off-by: Yuyang Du <yuyang.du@intel.com> Acked-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
89a73d281f
commit
dff3565b8e
@@ -248,7 +248,7 @@ int usbip_vhci_driver_open(void)
|
||||
vhci_driver->hc_device =
|
||||
udev_device_new_from_subsystem_sysname(udev_context,
|
||||
USBIP_VHCI_BUS_TYPE,
|
||||
USBIP_VHCI_DRV_NAME);
|
||||
USBIP_VHCI_DEVICE_NAME);
|
||||
if (!vhci_driver->hc_device) {
|
||||
err("udev_device_new_from_subsystem_sysname failed");
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user