]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitf61f29f16fcaf800298cc62ae0263c00a0052640
tree8069d75df68546c40918e38ef9fda64e7c880f5c
parent09b025ee9dfa57aaec77095e17ed87dffb4b6781
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