|
@@ -264,12 +264,12 @@ static int sdhci_bcm_kona_probe(struct platform_device *pdev)
|
|
|
}
|
|
|
|
|
|
dev_dbg(dev, "non-removable=%c\n",
|
|
|
- (host->mmc->caps & MMC_CAP_NONREMOVABLE) ? 'Y' : 'N');
|
|
|
+ mmc_card_is_removable(host->mmc) ? 'N' : 'Y');
|
|
|
dev_dbg(dev, "cd_gpio %c, wp_gpio %c\n",
|
|
|
(mmc_gpio_get_cd(host->mmc) != -ENOSYS) ? 'Y' : 'N',
|
|
|
(mmc_gpio_get_ro(host->mmc) != -ENOSYS) ? 'Y' : 'N');
|
|
|
|
|
|
- if (host->mmc->caps & MMC_CAP_NONREMOVABLE)
|
|
|
+ if (!mmc_card_is_removable(host->mmc))
|
|
|
host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
|
|
|
|
|
|
dev_dbg(dev, "is_8bit=%c\n",
|
|
@@ -288,7 +288,7 @@ static int sdhci_bcm_kona_probe(struct platform_device *pdev)
|
|
|
}
|
|
|
|
|
|
/* if device is eMMC, emulate card insert right here */
|
|
|
- if (host->mmc->caps & MMC_CAP_NONREMOVABLE) {
|
|
|
+ if (!mmc_card_is_removable(host->mmc)) {
|
|
|
ret = sdhci_bcm_kona_sd_card_emulate(host, 1);
|
|
|
if (ret) {
|
|
|
dev_err(dev,
|