提交 c095449e 编写于 作者: S Seunghui Lee 提交者: Ulf Hansson

mmc: mxcmmc: Use mmc_card_sdio macro

Use mmc_card_sdio macro to simplify code.
Signed-off-by: NSeunghui Lee <sh043.lee@samsung.com>
Link: https://lore.kernel.org/r/20220713033635.28432-3-sh043.lee@samsung.comSigned-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 3beb0ab5
...@@ -923,7 +923,7 @@ static void mxcmci_init_card(struct mmc_host *host, struct mmc_card *card) ...@@ -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. * 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; host->caps &= ~MMC_CAP_4_BIT_DATA;
else else
host->caps |= MMC_CAP_4_BIT_DATA; host->caps |= MMC_CAP_4_BIT_DATA;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册