mmc: fsl_esdhc_imx: fix config check issue when building in SPL
authorYe Li <ye.li@nxp.com>
Thu, 11 Jul 2019 03:29:02 +0000 (03:29 +0000)
committerPeng Fan <peng.fan@nxp.com>
Mon, 15 Jul 2019 02:30:08 +0000 (10:30 +0800)
Should use CONFIG_IS_ENABLED not IS_ENABLED for clock and regulator drivers,
CONFIG_IS_ENABLED will check the CONFIG_SPL_CLK and CONFIG_SPL_DM_REGULATOR
when building SPL.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/mmc/fsl_esdhc_imx.c

index c0d47ba3784ff5a228d161a1d0a2ac56bf430f4f..49382026f1e23072217fb2fa211dc2b14258b586 100644 (file)
@@ -146,7 +146,7 @@ struct fsl_esdhc_priv {
        u32 tuning_start_tap;
        u32 strobe_dll_delay_target;
        u32 signal_voltage;
-#if IS_ENABLED(CONFIG_DM_REGULATOR)
+#if CONFIG_IS_ENABLED(DM_REGULATOR)
        struct udevice *vqmmc_dev;
        struct udevice *vmmc_dev;
 #endif
@@ -1515,7 +1515,7 @@ static int fsl_esdhc_probe(struct udevice *dev)
 
        init_clk_usdhc(dev->seq);
 
-       if (IS_ENABLED(CONFIG_CLK)) {
+       if (CONFIG_IS_ENABLED(CLK)) {
                /* Assigned clock already set clock */
                ret = clk_get_by_name(dev, "per", &priv->per_clk);
                if (ret) {