regulator: Fix warning with CONFIG_BUG disabled
PATCH 1/1 regulator: Fix warning with CONFIG_BUG disabled
Signed-off-by Mark Brown <[email protected]>
--- drivers/regulator/wm831x-dcdc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/regulator/wm831x-dcdc.c +1 -0
@@ -120,6 +120,7 @@ static unsigned int wm831x_dcdc_get_mode(struct regulator_dev *rdev)return REGULATOR_MODE_IDLE ;default :BUG (); +return -EINVAL ; } }
Signature · 1 line
1.7.2.3
Liam Girdwood
AppliedQuoted 10 lines · Mark Brown
Signed-off-by Mark Brown <[email protected]>--- drivers/regulator/wm831x-dcdc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/regulator/wm831x-dcdc.c +0
-0
drivers/regulator/wm831x-dcdc.c static unsigned int wm831x_dcdc_get_mode(struct regulator_dev *rdev) · line 126
Quoted 7 lines
drivers/regulator/wm831x-dcdc.c +1
-0@@ -120,6 +120,7 @@ static unsigned int wm831x_dcdc_get_mode(struct regulator_dev *rdev)return REGULATOR_MODE_IDLE ;default :BUG (); +return -EINVAL ; } }
Applied.
Thanks
Liam
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk