summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-dcdc.c
diff options
context:
space:
mode:
authorMark Brown2011-02-02 21:17:22 +0100
committerLiam Girdwood2011-02-25 09:51:05 +0100
commit9ee291a453c1db310c0298f8e6c28794cd2c52bd (patch)
tree5f2c2deb0660001f412abe51d76dc0247fb8f5a5 /drivers/regulator/wm831x-dcdc.c
parentMerge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/air... (diff)
downloadkernel-qcow2-linux-9ee291a453c1db310c0298f8e6c28794cd2c52bd.tar.gz
kernel-qcow2-linux-9ee291a453c1db310c0298f8e6c28794cd2c52bd.tar.xz
kernel-qcow2-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>
Diffstat (limited to 'drivers/regulator/wm831x-dcdc.c')
-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;
}
}