mmc: fsl_esdhc: make get_cd work well in dm_mmc_ops
authorYinbo Zhu <yinbo.zhu@nxp.com>
Fri, 14 Dec 2018 10:02:53 +0000 (18:02 +0800)
committerYork Sun <york.sun@nxp.com>
Thu, 17 Jan 2019 21:17:10 +0000 (13:17 -0800)
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>
drivers/mmc/fsl_esdhc.c

index 99e588286653320baf8dd3d47ca1b4ea848e9f91..84637313e0ad0e737d706692e29dee22db483fd9 100644 (file)
@@ -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);
 }