greybus: usb: fix hcd allocation, deregistration and deallocation
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 30 Jul 2015 18:30:38 +0000 (20:30 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 30 Jul 2015 20:49:49 +0000 (13:49 -0700)
commitcc9bd53eb1bf50e265a8f8741a624bf67851f5c0
treec18feef83cb7c829e5b27cfb38e619dc3b098ca8
parent583804f7137737e07e69eaed2904cf043f226a83
greybus: usb: fix hcd allocation, deregistration and deallocation

Fix allocation, deregistration and deallocation of USB HCD, and update
the hcd_priv helper functions.

The HCD private data was not allocated correctly, something which would
lead to a crash when accessed in hcd_start. The HCD was neither
reregistered or deallocated on connection tear down.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/usb.c