drivers: mmc: iproc_sdhci: fix compilation warning
authorRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Tue, 31 Mar 2020 05:34:05 +0000 (11:04 +0530)
committerPeng Fan <peng.fan@nxp.com>
Wed, 22 Apr 2020 12:41:55 +0000 (20:41 +0800)
set_ios_post return type changed from void to int, correcting
the same to fix compilation warning.

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty@broadcom.com>
drivers/mmc/iproc_sdhci.c

index f65a1e543d4628b8add37a96e90baa7f90939be6..0f4d608869dcd48adcf427e68cebb0bd2e12d58e 100644 (file)
@@ -136,7 +136,7 @@ static void sdhci_iproc_writeb(struct sdhci_host *host, u8 val, int reg)
 }
 #endif
 
-static void sdhci_iproc_set_ios_post(struct sdhci_host *host)
+static int sdhci_iproc_set_ios_post(struct sdhci_host *host)
 {
        u32 ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);
 
@@ -147,6 +147,8 @@ static void sdhci_iproc_set_ios_post(struct sdhci_host *host)
                ctrl |= UHS_DDR50_BUS_SPEED;
 
        sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
+
+       return 0;
 }
 
 static struct sdhci_ops sdhci_platform_ops = {