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 74d8a35 commit 4a64060e90f69f146edd095016548f3235410f0b
@Sascha Hauer Sascha Hauer authored on 23 May 2017
Showing 1 changed file
View
drivers/usb/imx/chipidea-imx.c