4.1-stable review patch. If anyone has any objections, please let me know.
------------------ From: Geert Uytterhoeven <ge...@linux-m68k.org> commit dad3c3503462f59c6bec7edfa19dbde1857962c0 upstream. If GPIOLIB=n and asm-generic/gpio.h is not used: drivers/gpu/drm/bridge/ptn3460.c: In function âptn3460_pre_enableâ: drivers/gpu/drm/bridge/ptn3460.c:135: error: implicit declaration of function âgpiod_set_valueâ drivers/gpu/drm/bridge/ptn3460.c: In function âptn3460_probeâ: drivers/gpu/drm/bridge/ptn3460.c:333: error: implicit declaration of function âdevm_gpiod_getâ drivers/gpu/drm/bridge/ptn3460.c:333: warning: assignment makes pointer from integer without a cast drivers/gpu/drm/bridge/ptn3460.c:340: error: implicit declaration of function âgpiod_direction_outputâ drivers/gpu/drm/bridge/ptn3460.c:346: warning: assignment makes pointer from integer without a cast Add the missing #include <linux/gpio/consumer.h> to fix this. Fixes: af478d8823 ("drm/bridge: ptn3460: use gpiod interface") Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org> Cc: David Airlie <airlied at linux.ie> Cc: dri-devel at lists.freedesktop.org Signed-off-by: Thierry Reding <treding at nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org> --- drivers/gpu/drm/bridge/ptn3460.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/bridge/ptn3460.c +++ b/drivers/gpu/drm/bridge/ptn3460.c @@ -15,6 +15,7 @@ #include <linux/delay.h> #include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/i2c.h> #include <linux/module.h> #include <linux/of.h>