Skip to content

Commit c095449

Browse files
sh043leeUlf Hansson
authored andcommitted
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>
1 parent 3beb0ab commit c095449

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mmc/host/mxcmmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ static void mxcmci_init_card(struct mmc_host *host, struct mmc_card *card)
923923
* One way to prevent this is to only allow 1-bit transfers.
924924
*/
925925

926-
if (is_imx31_mmc(mxcmci) && card->type == MMC_TYPE_SDIO)
926+
if (is_imx31_mmc(mxcmci) && mmc_card_sdio(card))
927927
host->caps &= ~MMC_CAP_4_BIT_DATA;
928928
else
929929
host->caps |= MMC_CAP_4_BIT_DATA;

0 commit comments

Comments
 (0)