From: Yinbo Zhu <yinbo.zhu@nxp.com>
Date: Fri, 14 Dec 2018 10:02:53 +0000 (+0800)
Subject: mmc: fsl_esdhc: make get_cd work well in dm_mmc_ops
X-Git-Tag: v2025.01-rc5-pxa1908~3170^2~8
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=7a0425dd969c44e6afb6936bf8205c8770e9dea9;p=u-boot.git

mmc: fsl_esdhc: make get_cd work well in dm_mmc_ops

This patch is to make get_cd work well when DM_MMC enabled

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
---

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 99e5882866..84637313e0 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -1545,7 +1545,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);
 }