From: Kishon Vijay Abraham I Date: Fri, 27 Apr 2018 11:47:11 +0000 (+0530) Subject: mmc: sdhci-omap: Remove setting ADMA capability in driver X-Git-Tag: v4.18-rc1~137^2~39^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bc2bda54d49cb2dbf9387b47feb25c32d20e216;p=thirdparty%2Fkernel%2Flinux.git mmc: sdhci-omap: Remove setting ADMA capability in driver sdhci can directly get ADMA capability from MMCHS_CAPA register. Remove explicitly setting ADMA here as some instances might not have ADMA enabled. (sdhci_read_caps() is also removed from here since sdhci_setup_host() invokes it). Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter Acked-by: Tony Lindgren Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index e7e43f2ae2247..78f3ceea570ee 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -923,9 +923,6 @@ static int sdhci_omap_probe(struct platform_device *pdev) host->mmc_host_ops.card_busy = sdhci_omap_card_busy; host->mmc_host_ops.execute_tuning = sdhci_omap_execute_tuning; - sdhci_read_caps(host); - host->caps |= SDHCI_CAN_DO_ADMA2; - ret = sdhci_setup_host(host); if (ret) goto err_put_sync;