usb: ehci-generic: factorize PHY operation
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 14 Mar 2018 16:48:54 +0000 (17:48 +0100)
committerMarek Vasut <marex@denx.de>
Sat, 17 Mar 2018 02:20:53 +0000 (03:20 +0100)
commit20f06a48332d8dec255e3e808c3c97bb3222c2fd
tree06b7aa4707df8667a8055418d3a5ca2aa9b535de
parenta800a6793f095746173834ead6b3663bc3c0542c
usb: ehci-generic: factorize PHY operation

Factorize PHY get/init/poweron and PHY poweroff/exit operations
into separate function, it simplify the error path.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/usb/host/ehci-generic.c