]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: host: ohci-generic: initialize PHY only when found
authorPatrice Chotard <patrice.chotard@st.com>
Mon, 24 Jul 2017 15:07:05 +0000 (17:07 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:43 +0000 (23:34 +0200)
commit2080d023d90e2972f82dfde624d209cf5a0c569c
treec355cd8a4ce699c948dbe51ce072e7a02324a11b
parent4b3928a08f24d21c2d34487b9d89fee35814bd0d
usb: host: ohci-generic: initialize PHY only when found

Call generic_phy_init() only when a PHY was found.
This will avoid a crash if no "phys" property is found in DT.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reported-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/usb/host/ohci-generic.c