mmc: host: use the defined function to check whether card is removable
In linux/mmc/host.h, mmc_card_is_removable() is already defined. It should be maintainted more easier than now. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:

zatwierdzone przez
Ulf Hansson

rodzic
52c0624a10
commit
860951c5f0
@@ -183,7 +183,7 @@ static void st_mmcss_cconfig(struct device_node *np, struct sdhci_host *host)
|
||||
|
||||
writel_relaxed(cconf2, host->ioaddr + ST_MMC_CCONFIG_REG_2);
|
||||
|
||||
if (mhost->caps & MMC_CAP_NONREMOVABLE)
|
||||
if (!mmc_card_is_removable(mhost))
|
||||
cconf3 |= ST_MMC_CCONFIG_EMMC_SLOT_TYPE;
|
||||
else
|
||||
/* CARD _D ET_CTRL */
|
||||
|
Reference in New Issue
Block a user