greybus: es1: add more structure to probe error handling
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 4 Nov 2015 17:55:21 +0000 (18:55 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:35:18 +0000 (20:35 -0800)
commitb4bd3617ed069a0aae701ed451cb6ec370fbd45f
treeb2fe4ebb91ad280121b54d9eea69b388d86b6e66
parent57bc17ffc566deade99753febcc264c8326f1860
greybus: es1: add more structure to probe error handling

Add more structure to probe error handling rather than use the big
hammer and call disconnect directly.

This is needed to fix some host-device life-time issues.

Note that there was never any need to clear the USB interface data as
this will be done by driver core.

Compile-only tested.

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