diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-02-02 20:17:22 +0000 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-02-25 08:51:05 +0000 |
commit | 9ee291a453c1db310c0298f8e6c28794cd2c52bd (patch) | |
tree | 5f2c2deb0660001f412abe51d76dc0247fb8f5a5 /drivers/regulator | |
parent | 4662db446190ddef8fbab024f72dee77dd04b8f2 (diff) | |
download | op-kernel-dev-9ee291a453c1db310c0298f8e6c28794cd2c52bd.zip op-kernel-dev-9ee291a453c1db310c0298f8e6c28794cd2c52bd.tar.gz |
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')
-rw-r--r-- | drivers/regulator/wm831x-dcdc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c index 8b0d2c4..06df898 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; } } |