summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/mxcmmc.c
diff options
context:
space:
mode:
authorSeunghui Lee <sh043.lee@samsung.com>2022-07-13 06:36:35 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2022-07-13 13:46:07 +0300
commitc095449ea9812bafba71735fdc79e7b2ca0f4701 (patch)
treebb2eaf998309e0beb6198c01ce9617174bc722cc /drivers/mmc/host/mxcmmc.c
parent3beb0ab5bffba625007ea5c9e5e0ee5eef05c1ea (diff)
downloadlinux-c095449ea9812bafba71735fdc79e7b2ca0f4701.tar.xz
mmc: mxcmmc: Use mmc_card_sdio macro
Use mmc_card_sdio macro to simplify code. Signed-off-by: Seunghui Lee <sh043.lee@samsung.com> Link: https://lore.kernel.org/r/20220713033635.28432-3-sh043.lee@samsung.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/mxcmmc.c')
-rw-r--r--drivers/mmc/host/mxcmmc.c2
1 files changed, 1 insertions, 1 deletions
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;