]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: leverage ap_disconnect() in ap_probe()
authorAlex Elder <elder@linaro.org>
Mon, 20 Oct 2014 15:28:00 +0000 (10:28 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 20 Oct 2014 22:32:01 +0000 (06:32 +0800)
commit1ec1d6dd357766cb6d1816ad61cc0f7ca3dbc960
treebc1152ab7af771e5cbfdc19d8435d4979afc0c54
parent6892537f61b1eac275ad50e093708e5e3c8664bd
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>
drivers/staging/greybus/es1-ap-usb.c