aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-04-25 07:59:20 -0400
committerChris Ball <chris@printf.net>2014-05-22 07:26:34 -0400
commit13e645012dff774895906058163ae244f47b9b81 (patch)
tree44996e99682ddcca605261ee10ec1cf40c695699 /drivers/mmc
parentcb399da401c64f527ced132179f66ac022e63d7b (diff)
mmc: sdhci: set_uhs_signaling() need not return a value
The set_uhs_signaling() method gives the impression that it can fail, but anything returned from the method is entirely ignored by the sdhci driver. So returning failure has no effect. So, kill the idea that it's possible for this to return an error by removing the returned value. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-by: Markus Pargmann <mpa@pengutronix.de> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-esdhc-imx.c4
-rw-r--r--drivers/mmc/host/sdhci-pxav3.c4
-rw-r--r--drivers/mmc/host/sdhci.h2
3 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index dfed2c37ab3f..72e0581e564f 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -841,7 +841,7 @@ static int esdhc_change_pinstate(struct sdhci_host *host,
841 return pinctrl_select_state(imx_data->pinctrl, pinctrl); 841 return pinctrl_select_state(imx_data->pinctrl, pinctrl);
842} 842}
843 843
844static int esdhc_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs) 844static void esdhc_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs)
845{ 845{
846 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 846 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
847 struct pltfm_imx_data *imx_data = pltfm_host->priv; 847 struct pltfm_imx_data *imx_data = pltfm_host->priv;
@@ -879,7 +879,7 @@ static int esdhc_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs)
879 break; 879 break;
880 } 880 }
881 881
882 return esdhc_change_pinstate(host, uhs); 882 esdhc_change_pinstate(host, uhs);
883} 883}
884 884
885static void esdhc_reset(struct sdhci_host *host, u8 mask) 885static void esdhc_reset(struct sdhci_host *host, u8 mask)
diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index 8a40e079a57e..05574104a254 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -186,7 +186,7 @@ static void pxav3_gen_init_74_clocks(struct sdhci_host *host, u8 power_mode)
186 pxa->power_mode = power_mode; 186 pxa->power_mode = power_mode;
187} 187}
188 188
189static int pxav3_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs) 189static void pxav3_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs)
190{ 190{
191 u16 ctrl_2; 191 u16 ctrl_2;
192 192
@@ -220,8 +220,6 @@ static int pxav3_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs)
220 dev_dbg(mmc_dev(host->mmc), 220 dev_dbg(mmc_dev(host->mmc),
221 "%s uhs = %d, ctrl_2 = %04X\n", 221 "%s uhs = %d, ctrl_2 = %04X\n",
222 __func__, uhs, ctrl_2); 222 __func__, uhs, ctrl_2);
223
224 return 0;
225} 223}
226 224
227static const struct sdhci_ops pxav3_sdhci_ops = { 225static const struct sdhci_ops pxav3_sdhci_ops = {
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index ac20195f667b..3179a8053019 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -287,7 +287,7 @@ struct sdhci_ops {
287 unsigned int (*get_ro)(struct sdhci_host *host); 287 unsigned int (*get_ro)(struct sdhci_host *host);
288 void (*reset)(struct sdhci_host *host, u8 mask); 288 void (*reset)(struct sdhci_host *host, u8 mask);
289 int (*platform_execute_tuning)(struct sdhci_host *host, u32 opcode); 289 int (*platform_execute_tuning)(struct sdhci_host *host, u32 opcode);
290 int (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs); 290 void (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
291 void (*hw_reset)(struct sdhci_host *host); 291 void (*hw_reset)(struct sdhci_host *host);
292 void (*platform_suspend)(struct sdhci_host *host); 292 void (*platform_suspend)(struct sdhci_host *host);
293 void (*platform_resume)(struct sdhci_host *host); 293 void (*platform_resume)(struct sdhci_host *host);