From: Mark Brown Date: Wed, 2 Feb 2011 20:17:22 +0000 (+0000) Subject: regulator: Fix warning with CONFIG_BUG disabled X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ee291a453c1db310c0298f8e6c28794cd2c52bd;p=linux-beck.git regulator: Fix warning with CONFIG_BUG disabled Signed-off-by: Mark Brown Signed-off-by: Liam Girdwood --- 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; } }