From: Uwe Kleine-König Date: Tue, 21 Jul 2015 14:46:24 +0000 (+0200) Subject: regulator: rk808: add #include for gpiod functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=604d4994277f3526c8ec7ba16f32e236d5ca3e78;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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 #include #include +#include /* Field Definitions */ #define RK808_BUCK_VSEL_MASK 0x3f