[U-Boot] [PATCH v1] mmc: fsl_esdhc: make get_cd work well in dm_mmc_ops

Yinbo Zhu yinbo.zhu at nxp.com
Thu Jan 24 03:10:39 UTC 2019


From: Yinbo Zhu <yinbo.zhu at nxp.com>

This patch is to make get_cd work well when DM_MMC enabled

Signed-off-by: Yinbo Zhu <yinbo.zhu at nxp.com>
---
 drivers/mmc/fsl_esdhc.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 5437910..4ec49bc 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -1521,7 +1521,6 @@ static int fsl_esdhc_get_cd(struct udevice *dev)
 {
 	struct fsl_esdhc_priv *priv = dev_get_priv(dev);
 
-	return true;
 	return esdhc_getcd_common(priv);
 }
 
-- 
1.7.1



More information about the U-Boot mailing list