diff mbox series

[v2,2/2] mmc: host: use mmc_card_sdio macro

Message ID 20220713033635.28432-3-sh043.lee@samsung.com (mailing list archive)
State New, archived
Headers show
Series mmc: use mmc_card_* macro and add it for sd_combo | expand

Commit Message

이승희 July 13, 2022, 3:36 a.m. UTC
use mmc_card_sdio macro to simplify

Signed-off-by: Seunghui Lee <sh043.lee@samsung.com>
---
 drivers/mmc/host/mxcmmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c
index 613f13306433..2cf0413407ea 100644
--- a/drivers/mmc/host/mxcmmc.c
+++ b/drivers/mmc/host/mxcmmc.c
@@ -923,7 +923,7 @@  static void mxcmci_init_card(struct mmc_host *host, struct mmc_card *card)
 	 * One way to prevent this is to only allow 1-bit transfers.
 	 */
 
-	if (is_imx31_mmc(mxcmci) && card->type == MMC_TYPE_SDIO)
+	if (is_imx31_mmc(mxcmci) && mmc_card_sdio(card))
 		host->caps &= ~MMC_CAP_4_BIT_DATA;
 	else
 		host->caps |= MMC_CAP_4_BIT_DATA;