The code to create the child platform device is essentially the same as
what platform_device_register_full() does, so change over to use
that same function to reduce duplication.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
v2: (hopefully) fixed run-time NULL-dereference (LKP)
drivers/usb/usbip/vhci_hcd.c | 55 +++++++++++++-----------------------
1 file changed, 20 insertions(+), 35 deletions(-)