twl4030-charger: Fix compiler warning with regulator_enable()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 21 Aug 2013 08:31:37 +0000 (11:31 +0300)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 28 Aug 2013 01:28:30 +0000 (18:28 -0700)
commit697be361d2b3fd7760869341d7ce805092a5c1e5
tree46cabb187ca72f7046a2c0d1be53f38dbbefe83a
parent8e2747f031bd322d0fc25e0338ef50d4c18843d4
twl4030-charger: Fix compiler warning with regulator_enable()

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@ti.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/twl4030_charger.c