mmc: sdhci: Use sdhci_readl() not readl() in sdhci_dumpregs()
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 20 Mar 2017 17:50:41 +0000 (19:50 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:32 +0000 (21:41 +0200)
Use sdhci io wrappers consistently.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
drivers/mmc/host/sdhci.c

index 49acbd53e3e5fd0a85302ae227db50e959df21e9..94005d210d5ee2cd1d28a017508459c6a7cd0bf2 100644 (file)
@@ -100,13 +100,13 @@ static void sdhci_dumpregs(struct sdhci_host *host)
        if (host->flags & SDHCI_USE_ADMA) {
                if (host->flags & SDHCI_USE_64_BIT_DMA)
                        pr_err(DRIVER_NAME ": ADMA Err: 0x%08x | ADMA Ptr: 0x%08x%08x\n",
-                              readl(host->ioaddr + SDHCI_ADMA_ERROR),
-                              readl(host->ioaddr + SDHCI_ADMA_ADDRESS_HI),
-                              readl(host->ioaddr + SDHCI_ADMA_ADDRESS));
+                              sdhci_readl(host, SDHCI_ADMA_ERROR),
+                              sdhci_readl(host, SDHCI_ADMA_ADDRESS_HI),
+                              sdhci_readl(host, SDHCI_ADMA_ADDRESS));
                else
                        pr_err(DRIVER_NAME ": ADMA Err: 0x%08x | ADMA Ptr: 0x%08x\n",
-                              readl(host->ioaddr + SDHCI_ADMA_ERROR),
-                              readl(host->ioaddr + SDHCI_ADMA_ADDRESS));
+                              sdhci_readl(host, SDHCI_ADMA_ERROR),
+                              sdhci_readl(host, SDHCI_ADMA_ADDRESS));
        }
 
        pr_err(DRIVER_NAME ": ===========================================\n");