diff options
author | Uwe Kleine-König <uwe@kleine-koenig.org> | 2015-07-21 16:46:24 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-21 18:11:29 +0200 |
commit | 604d4994277f3526c8ec7ba16f32e236d5ca3e78 (patch) | |
tree | 10c9fdf6ce4621999e2291b0d04725f89cc5855b /drivers/regulator | |
parent | regulator: rk808: fixed the overshoot when adjust voltage (diff) | |
download | linux-604d4994277f3526c8ec7ba16f32e236d5ca3e78.tar.xz linux-604d4994277f3526c8ec7ba16f32e236d5ca3e78.zip |
regulator: rk808: add #include for gpiod functions
This fixes a build problem on mips found by the kbuild test robot:
drivers/regulator/rk808-regulator.c: In function 'rk808_buck1_2_get_voltage_sel_regmap':
drivers/regulator/rk808-regulator.c:97:2: error: implicit declaration of function 'gpiod_get_value' [-Werror=implicit-function-declaration]
if (IS_ERR(gpio) || gpiod_get_value(gpio) == 0)
^
Fixes: bad47ad2eef3 ("regulator: rk808: fixed the overshoot when adjust voltage")
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/rk808-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index ca913fd15598..ac9436d2ea8d 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -25,6 +25,7 @@ #include <linux/mfd/rk808.h> #include <linux/regulator/driver.h> #include <linux/regulator/of_regulator.h> +#include <linux/gpio/consumer.h> /* Field Definitions */ #define RK808_BUCK_VSEL_MASK 0x3f |