diff options
author | Rob Herring <robh@kernel.org> | 2023-07-18 16:32:26 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-07-20 07:56:30 +0200 |
commit | e8812acb5bf724f2fc23a500e590c776ebda7b0a (patch) | |
tree | 11f8d7d5919e08a0ae04fc373b26f2b17edfdef1 /drivers/video/fbdev/bw2.c | |
parent | fbdev: ep93xx-fb: fix return value check in ep93xxfb_probe (diff) | |
download | linux-e8812acb5bf724f2fc23a500e590c776ebda7b0a.tar.xz linux-e8812acb5bf724f2fc23a500e590c776ebda7b0a.zip |
fbdev: Explicitly include correct DT includes
The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/bw2.c')
-rw-r--r-- | drivers/video/fbdev/bw2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/bw2.c b/drivers/video/fbdev/bw2.c index 025d663dc6fd..39f438de0d6b 100644 --- a/drivers/video/fbdev/bw2.c +++ b/drivers/video/fbdev/bw2.c @@ -17,7 +17,8 @@ #include <linux/init.h> #include <linux/fb.h> #include <linux/mm.h> -#include <linux/of_device.h> +#include <linux/of.h> +#include <linux/platform_device.h> #include <asm/io.h> #include <asm/fbio.h> |