regulator: Fix warning with CONFIG_BUG disabled
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 2 Feb 2011 20:17:22 +0000 (20:17 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 25 Feb 2011 08:51:05 +0000 (08:51 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/wm831x-dcdc.c

index 8b0d2c4bde919fb9815903288acabb1afa9b63eb..06df898842c0026ae63a86641d8aa067271ff649 100644 (file)
@@ -120,6 +120,7 @@ static unsigned int wm831x_dcdc_get_mode(struct regulator_dev *rdev)
                return REGULATOR_MODE_IDLE;
        default:
                BUG();
+               return -EINVAL;
        }
 }