usb: host: ehci-generic: add error path and .remove callback
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 18 Jul 2017 09:57:10 +0000 (11:57 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:09 +0000 (23:34 +0200)
commita1cee8e808042e2597d162b1687fdb470634271e
tree8069d75df68546c40918e38ef9fda64e7c880f5c
parent10bb775e925d2a1c516c96904a5e1d2e747c4e1b
usb: host: ehci-generic: add error path and .remove callback

Use an array to save enabled clocks reference and deasserted resets
in order to respectively disabled and asserted them in case of error
during probe() or during driver removal.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci-generic.c