summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc_pio.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski2013-07-08 11:38:09 +0200
committerChris Ball2013-07-23 21:06:47 +0200
commit6d1d6b4759112acf4c079eb3a0dd296bdbf61cf5 (patch)
tree1da739977917f4235068019716477b593f0b6807 /drivers/mmc/host/tmio_mmc_pio.c
parentMerge tag 'mmc-updates-for-3.11-rc1' of git://git.kernel.org/pub/scm/linux/ke... (diff)
downloadkernel-qcow2-linux-6d1d6b4759112acf4c079eb3a0dd296bdbf61cf5.tar.gz
kernel-qcow2-linux-6d1d6b4759112acf4c079eb3a0dd296bdbf61cf5.tar.xz
kernel-qcow2-linux-6d1d6b4759112acf4c079eb3a0dd296bdbf61cf5.zip
mmc: tmio: fix compiler warning
This patch fixes a compiler warning: drivers/mmc/host/tmio_mmc_pio.c: In function 'tmio_mmc_power_on': drivers/mmc/host/tmio_mmc_pio.c:798:19: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc_pio.c')
-rw-r--r--drivers/mmc/host/tmio_mmc_pio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c
index b72edb72f7d2..718843cfacfc 100644
--- a/drivers/mmc/host/tmio_mmc_pio.c
+++ b/drivers/mmc/host/tmio_mmc_pio.c
@@ -795,9 +795,13 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd)
* omap_hsmmc.c driver does.
*/
if (!IS_ERR(mmc->supply.vqmmc) && !ret) {
- regulator_enable(mmc->supply.vqmmc);
+ ret = regulator_enable(mmc->supply.vqmmc);
udelay(200);
}
+
+ if (ret < 0)
+ dev_dbg(&host->pdev->dev, "Regulators failed to power up: %d\n",
+ ret);
}
static void tmio_mmc_power_off(struct tmio_mmc_host *host)