Re: [PATCH] power: twl4030-charger: Fix compiler warning withregulator_enable()

From: Anton Vorontsov
Date: Tue Aug 27 2013 - 21:34:45 EST


On Wed, Aug 21, 2013 at 11:31:37AM +0300, Peter Ujfalusi wrote:
> The return value of regulator_enable need to be checked. This patch fixes
> the following warning:
> drivers/power/twl4030_charger.c: In function âtwl4030_charger_enable_usbâ:
> drivers/power/twl4030_charger.c:192:20: warning: ignoring return value of âregulator_enableâ, declared with attribute warn_unused_result [-Wunused-result]
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@xxxxxx>

Applied, thanks a lot!

Anton
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/