From f2c6a3f108818e4109a800174c62cdea9d425a14 Mon Sep 17 00:00:00 2001 From: Ivan Ucherdzhiev Date: Wed, 21 Aug 2019 09:26:54 -0600 Subject: [PATCH] drivers/mmcsd/mmcsd_sdio.c: Copy/paste error fix for MMC. --- drivers/mmcsd/mmcsd_sdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c index 32d31543d2..0cc5b2e784 100644 --- a/drivers/mmcsd/mmcsd_sdio.c +++ b/drivers/mmcsd/mmcsd_sdio.c @@ -688,6 +688,7 @@ static void mmcsd_decodeCSD(FAR struct mmcsd_state_s *priv, uint32_t csd[4]) priv->blockshift = 9; } +#ifdef CONFIG_DEBUG_FS_INFO decoded.u.mmc.csize = csize; decoded.u.mmc.vddrcurrmin = (csd[2] >> 27) & 7; decoded.u.mmc.vddrcurrmax = (csd[2] >> 24) & 7; @@ -697,6 +698,7 @@ static void mmcsd_decodeCSD(FAR struct mmcsd_state_s *priv, uint32_t csd[4]) decoded.u.mmc.er.mmc22.sectorsize = (csd[2] >> 10) & 0x1f; decoded.u.mmc.er.mmc22.ergrpsize = (csd[2] >> 5) & 0x1f; decoded.u.mmc.mmcwpgrpsize = csd[2] & 0x1f; +#endif } else #endif