diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-07-08 05:38:09 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-07-23 15:06:47 -0400 |
commit | 6d1d6b4759112acf4c079eb3a0dd296bdbf61cf5 (patch) | |
tree | 1da739977917f4235068019716477b593f0b6807 | |
parent | bfffbea1aaeeb1eb6500c83ff9653416daa5b490 (diff) |
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>
-rw-r--r-- | drivers/mmc/host/tmio_mmc_pio.c | 6 |
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) | |||
795 | * omap_hsmmc.c driver does. | 795 | * omap_hsmmc.c driver does. |
796 | */ | 796 | */ |
797 | if (!IS_ERR(mmc->supply.vqmmc) && !ret) { | 797 | if (!IS_ERR(mmc->supply.vqmmc) && !ret) { |
798 | regulator_enable(mmc->supply.vqmmc); | 798 | ret = regulator_enable(mmc->supply.vqmmc); |
799 | udelay(200); | 799 | udelay(200); |
800 | } | 800 | } |
801 | |||
802 | if (ret < 0) | ||
803 | dev_dbg(&host->pdev->dev, "Regulators failed to power up: %d\n", | ||
804 | ret); | ||
801 | } | 805 | } |
802 | 806 | ||
803 | static void tmio_mmc_power_off(struct tmio_mmc_host *host) | 807 | static void tmio_mmc_power_off(struct tmio_mmc_host *host) |