diff options
author | Yuyang Du <yuyang.du@intel.com> | 2017-06-08 01:04:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-13 04:51:10 -0400 |
commit | dff3565b8e1c0be6fc83ba47dcab45c149dcab5b (patch) | |
tree | eecdc8e61cba37461c7711a55b7725620ec1a38e /tools/usb/usbip/libsrc | |
parent | 89a73d281fa4f58942474ada19d34d7ea39af2f4 (diff) |
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>
Diffstat (limited to 'tools/usb/usbip/libsrc')
-rw-r--r-- | tools/usb/usbip/libsrc/vhci_driver.c | 2 | ||||
-rw-r--r-- | tools/usb/usbip/libsrc/vhci_driver.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/usb/usbip/libsrc/vhci_driver.c b/tools/usb/usbip/libsrc/vhci_driver.c index f519c73c6d99..3d8189b4f539 100644 --- a/tools/usb/usbip/libsrc/vhci_driver.c +++ b/tools/usb/usbip/libsrc/vhci_driver.c | |||
@@ -248,7 +248,7 @@ int usbip_vhci_driver_open(void) | |||
248 | vhci_driver->hc_device = | 248 | vhci_driver->hc_device = |
249 | udev_device_new_from_subsystem_sysname(udev_context, | 249 | udev_device_new_from_subsystem_sysname(udev_context, |
250 | USBIP_VHCI_BUS_TYPE, | 250 | USBIP_VHCI_BUS_TYPE, |
251 | USBIP_VHCI_DRV_NAME); | 251 | USBIP_VHCI_DEVICE_NAME); |
252 | if (!vhci_driver->hc_device) { | 252 | if (!vhci_driver->hc_device) { |
253 | err("udev_device_new_from_subsystem_sysname failed"); | 253 | err("udev_device_new_from_subsystem_sysname failed"); |
254 | goto err; | 254 | goto err; |
diff --git a/tools/usb/usbip/libsrc/vhci_driver.h b/tools/usb/usbip/libsrc/vhci_driver.h index 33add142c46e..dfe19c1c0245 100644 --- a/tools/usb/usbip/libsrc/vhci_driver.h +++ b/tools/usb/usbip/libsrc/vhci_driver.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include "usbip_common.h" | 11 | #include "usbip_common.h" |
12 | 12 | ||
13 | #define USBIP_VHCI_BUS_TYPE "platform" | 13 | #define USBIP_VHCI_BUS_TYPE "platform" |
14 | #define USBIP_VHCI_DEVICE_NAME "vhci_hcd.0" | ||
14 | #define MAXNPORT 128 | 15 | #define MAXNPORT 128 |
15 | 16 | ||
16 | struct usbip_imported_device { | 17 | struct usbip_imported_device { |