]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci: Fix parameter of sdhci_do_start_signal_voltage_switch()
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 14 Feb 2013 12:35:03 +0000 (10:35 -0200)
committerChris Ball <cjb@laptop.org>
Thu, 14 Feb 2013 21:02:37 +0000 (16:02 -0500)
commit195a3d8a800e40b19e98b716005cb41f69e869c6
tree187fe9a19a8c6ad33bcbefb6f91297e36c13278f
parent8c555a6316d3115e774598d060c606c49985c898
mmc: sdhci: Fix parameter of sdhci_do_start_signal_voltage_switch()

3714f4315354 ("mmc: sdhci: update signal voltage switch code") changed the
type of the second parameter of sdhci_do_start_signal_voltage_switch(),
from "struct mmc_ios *ios" to "int signal_voltage" which causes the
following build warning:

drivers/mmc/host/sdhci.c:2044:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/mmc/host/sdhci.c:2044:2: warning: (near initialization for 'sdhci_ops.start_signal_voltage_switch') [enabled by default]

Use the previous type so that it matches the start_signal_voltage_switch()
definition from host.h.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Johan Rudholm <johan.rudholm@stericsson.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c