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/mb862xx/mb862xxfbdrv.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/mb862xx/mb862xxfbdrv.c')
-rw-r--r-- | drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c index b5c8fcab9940..9dc347d163cf 100644 --- a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c +++ b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c @@ -18,11 +18,11 @@ #include <linux/init.h> #include <linux/interrupt.h> #include <linux/pci.h> -#if defined(CONFIG_OF) +#include <linux/of.h> #include <linux/of_address.h> #include <linux/of_irq.h> -#include <linux/of_platform.h> -#endif +#include <linux/platform_device.h> + #include "mb862xxfb.h" #include "mb862xx_reg.h" |