commit | 1ec1d6dd357766cb6d1816ad61cc0f7ca3dbc960 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Mon Oct 20 10:28:00 2014 -0500 |
committer | Greg Kroah-Hartman <greg@kroah.com> | Tue Oct 21 06:32:01 2014 +0800 |
tree | bc1152ab7af771e5cbfdc19d8435d4979afc0c54 | |
parent | 6892537f61b1eac275ad50e093708e5e3c8664bd [diff] |
greybus: leverage ap_disconnect() in ap_probe() With a few minor changes, ap_disconnect() can correctly handle cleaning up even a partially initialized USB interface. Make those changes, and then use ap_disconnect() to simplify cleanup for all the error paths in ap_probe(). Reset all fields as they're cleaned up to facilitate debugging. Signed-off-by: Alex Elder <elder@linaro.org>