usb: imx: Only use clock when it exists
Fixes: bbe0df9

I assumed all chipidea devices actually have a clock. This is true
when looking at the device tree, but in barebox not all i.MX SoCs
use the clocks provided by the device tree. Most instead use
clkdev_add_physbase() to attach a clocks to devices. For these the
chipidea device does not have a clock.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 65b2f30 commit f6ee281578930123987c1d92722316adda35b927
@Sascha Hauer Sascha Hauer authored on 23 May 2017
Showing 1 changed file
View
drivers/usb/imx/chipidea-imx.c