summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-02 21:17:22 +0100
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-02-25 09:51:05 +0100
commit9ee291a453c1db310c0298f8e6c28794cd2c52bd (patch)
tree5f2c2deb0660001f412abe51d76dc0247fb8f5a5
parentMerge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/air... (diff)
downloadlinux-9ee291a453c1db310c0298f8e6c28794cd2c52bd.tar.xz
linux-9ee291a453c1db310c0298f8e6c28794cd2c52bd.zip
regulator: Fix warning with CONFIG_BUG disabled
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r--drivers/regulator/wm831x-dcdc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c
index 8b0d2c4bde91..06df898842c0 100644
--- a/drivers/regulator/wm831x-dcdc.c
+++ b/drivers/regulator/wm831x-dcdc.c
@@ -120,6 +120,7 @@ static unsigned int wm831x_dcdc_get_mode(struct regulator_dev *rdev)
return REGULATOR_MODE_IDLE;
default:
BUG();
+ return -EINVAL;
}
}