greybus: es2: add more structure to probe error handling
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 4 Nov 2015 17:55:20 +0000 (18:55 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:35:18 +0000 (20:35 -0800)
commit57bc17ffc566deade99753febcc264c8326f1860
treeb5ca5fae65a73b710b27c8e6c88620e6a8a2388d
parentfb7a4ea22b6e68b043165ccff9601665c51af59d
greybus: es2: 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.

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