summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/bw2.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-18 08:32:26 -0600
committerHelge Deller <deller@gmx.de>2023-07-20 07:56:30 +0200
commite8812acb5bf724f2fc23a500e590c776ebda7b0a (patch)
tree11f8d7d5919e08a0ae04fc373b26f2b17edfdef1 /drivers/video/fbdev/bw2.c
parent9d5651ad2ae7b2ddfc56ff243a08937d9681f950 (diff)
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.c3
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>