mmc: sdhci-sprd: Drop redundant cap flags
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 Apr 2020 11:37:24 +0000 (13:37 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:56 +0000 (11:20 +0200)
The MMC_CAP_ERASE and MMC_CAP_CMD23 flags are already being set in the
common sdhci_setup_host(). This makes it redundant to set them for
sdhci-sprd, so let's drop them.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200406113724.8504-1-ulf.hansson@linaro.org
drivers/mmc/host/sdhci-sprd.c

index 2ab42c59e4f88a50a60e4693dc00e2911cf41c85..60c3a4c620f9de7cea459aa45af8d261fab1ba21 100644 (file)
@@ -556,7 +556,8 @@ static int sdhci_sprd_probe(struct platform_device *pdev)
                sdhci_sprd_voltage_switch;
 
        host->mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
-               MMC_CAP_ERASE | MMC_CAP_CMD23 | MMC_CAP_WAIT_WHILE_BUSY;
+               MMC_CAP_WAIT_WHILE_BUSY;
+
        ret = mmc_of_parse(host->mmc);
        if (ret)
                goto pltfm_free;