Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

omapfb/dss: Include the right header

The hdmi4.c and hdmi5.c files include the legacy GPIO
header <linux/gpio.h> but does not use any of the symbols
from this file.

What it does use is the implicit inclusion of <linux/of.h>
leading to compile errors if we just drop this include.

Include the right header.

Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200706125931.752539-1-linus.walleij@linaro.org

authored by

Linus Walleij and committed by
Sam Ravnborg
85806f6d 2d05f56a

+2 -2
+1 -1
drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c
··· 19 19 #include <linux/platform_device.h> 20 20 #include <linux/pm_runtime.h> 21 21 #include <linux/clk.h> 22 - #include <linux/gpio.h> 22 + #include <linux/of.h> 23 23 #include <linux/regulator/consumer.h> 24 24 #include <linux/component.h> 25 25 #include <video/omapfb_dss.h>
+1 -1
drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c
··· 24 24 #include <linux/platform_device.h> 25 25 #include <linux/pm_runtime.h> 26 26 #include <linux/clk.h> 27 - #include <linux/gpio.h> 27 + #include <linux/of.h> 28 28 #include <linux/regulator/consumer.h> 29 29 #include <linux/component.h> 30 30 #include <video/omapfb_dss.h>