* [PATCH] mmc: tmio: fix compiler warning
@ 2013-07-08 9:38 Guennadi Liakhovetski
2013-07-23 19:01 ` Olof Johansson
0 siblings, 1 reply; 3+ messages in thread
From: Guennadi Liakhovetski @ 2013-07-08 9:38 UTC (permalink / raw)
To: linux-mmc; +Cc: Chris Ball
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>
---
This warning is present in "next" and in 3.10, but since it doesn't affect
functionality, I don't think it's needed for stable.
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 f294708..84e1888 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)
--
1.7.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: tmio: fix compiler warning
2013-07-08 9:38 [PATCH] mmc: tmio: fix compiler warning Guennadi Liakhovetski
@ 2013-07-23 19:01 ` Olof Johansson
2013-07-23 19:08 ` Chris Ball
0 siblings, 1 reply; 3+ messages in thread
From: Olof Johansson @ 2013-07-23 19:01 UTC (permalink / raw)
To: Guennadi Liakhovetski, Chris Ball; +Cc: linux-mmc@vger.kernel.org
On Mon, Jul 8, 2013 at 2:38 AM, Guennadi Liakhovetski
<g.liakhovetski@gmx.de> wrote:
> 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>
Acked-by: Olof Johansson <olof@lixom.net>
Chris, this warniong is staring at me from my inbox every morning.
Would you mind picking it up for 3.11?
Thanks!
-Olof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: tmio: fix compiler warning
2013-07-23 19:01 ` Olof Johansson
@ 2013-07-23 19:08 ` Chris Ball
0 siblings, 0 replies; 3+ messages in thread
From: Chris Ball @ 2013-07-23 19:08 UTC (permalink / raw)
To: Olof Johansson; +Cc: Guennadi Liakhovetski, linux-mmc@vger.kernel.org
Hi,
On Tue, Jul 23 2013, Olof Johansson wrote:
> On Mon, Jul 8, 2013 at 2:38 AM, Guennadi Liakhovetski
> <g.liakhovetski@gmx.de> wrote:
>> 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>
>
> Acked-by: Olof Johansson <olof@lixom.net>
>
> Chris, this warniong is staring at me from my inbox every morning.
> Would you mind picking it up for 3.11?
Sure -- pushed to mmc-next for 3.11.
Thanks,
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-23 19:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-08 9:38 [PATCH] mmc: tmio: fix compiler warning Guennadi Liakhovetski
2013-07-23 19:01 ` Olof Johansson
2013-07-23 19:08 ` Chris Ball
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox