Browse Source

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>
Mark Brown 14 năm trước cách đây
mục cha
commit
9ee291a453
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/regulator/wm831x-dcdc.c

+ 1 - 0
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;
 	}
 }