diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-26 13:25:29 +0300 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-05-08 07:12:33 +0300 |
commit | 65117182543e58ba69f4abdc998423798137cbae (patch) | |
tree | eadfc8e9646215ff4946949ffd7a09566ef255a3 /drivers/mmc/meson_gx_mmc.c | |
parent | 817669231c89a97e3934baf07d457ca9671947ea (diff) | |
download | u-boot-65117182543e58ba69f4abdc998423798137cbae.tar.xz |
mmc: add the MMC_CLK_ENABLE/DISABLE macro in mmc.h
mmc_set_clock() function has the disable argument as bool type.
When mmc_set_clock is called, it might be passed to "true" or "false".
But it's too confusion whether clock is enabled or disabled with only
"true" and "false".
To prevent the confusion, replace to MMC_CLK_ENABLE/DISABLE macro from
true/false.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc/meson_gx_mmc.c')
-rw-r--r-- | drivers/mmc/meson_gx_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c index 0aea4770c5..332f1e12a5 100644 --- a/drivers/mmc/meson_gx_mmc.c +++ b/drivers/mmc/meson_gx_mmc.c @@ -252,7 +252,7 @@ static int meson_mmc_probe(struct udevice *dev) mmc->priv = pdata; upriv->mmc = mmc; - mmc_set_clock(mmc, cfg->f_min, false); + mmc_set_clock(mmc, cfg->f_min, MMC_CLK_ENABLE); /* reset all status bits */ meson_write(mmc, STATUS_MASK, MESON_SD_EMMC_STATUS); |