Skip to content

Commit

Permalink
mmc: mxcmmc: Use mmc_card_sdio macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Seunghui Lee authored and Ulf Hansson committed Jul 13, 2022
1 parent 3beb0ab commit c095449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/mxcmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c095449

Please sign in to comment.