MLK-21848-5 fsl_esdhc: fix problem when using clk driver
authorYe Li <ye.li@nxp.com>
Fri, 26 Apr 2019 01:39:12 +0000 (18:39 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 10:38:54 +0000 (03:38 -0700)
commitbe51cba531a985f6bde70213856ee957b80562dd
tree3ca54678093851136d92dabe91a609b00618a7db
parent99144b0dec31fba21aec3ff923d820511cba80c9
MLK-21848-5 fsl_esdhc: fix problem when using clk driver

Should use CONFIG_IS_ENABLED not IS_ENABLED for CLK driver, so it will
check the CONFIG_SPL_CLK when building SPL

Move init_clk_usdhc to non-clk driver case, since assigned-clocks properties
will initialize the clocks by clk driver.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/mmc/fsl_esdhc.c