imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined
authorPeng Fan <peng.fan@nxp.com>
Wed, 16 Oct 2019 03:01:51 +0000 (03:01 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 5 Nov 2019 09:27:18 +0000 (10:27 +0100)
commitcd7c806f4f58fe66895f4355b1ddd88460925a01
tree3eedd8fb1cedce589585f72df72f5b2fbd847264
parentd239d9d9464f7eb3a9ae1d3b45865149a758b501
imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined

When CONFIG_$(SPL_)CLK not defined, the clock controller device
not exist, so to avoid boot failure for platform not have
CONFIG_$(SPL_)CLK, add a check.

Reviewed-by: Patrick Wildt <patrick@blueri.se>
Tested-by: Patrick Wildt <patrick@blueri.se>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8m/soc.c