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>
Wed, 28 Apr 2021 20:48:55 +0000 (13:48 -0700)
commitf67a972956b45d26ea18fae7f4a81e15460ee05b
tree80d7b220087be52708b79e915a98a834fcadbdd7
parent7adf6be8ac8982d307a9e8a9086a095f10c5db39
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>
(cherry picked from commit be51cba531a985f6bde70213856ee957b80562dd)
(cherry picked from commit 23b99dc837c94c5337fb92fbc9d46fa8c23b644b)
drivers/mmc/fsl_esdhc_imx.c