summaryrefslogtreecommitdiff
path: root/arch/mips/cavium-octeon
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:40:27 -0600
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-07-25 10:42:01 +0200
commit657c45b303f87d77eb4ef49e9452f1c5d1fc363c (patch)
treea2731b0772dbcc5b87248752d9d9a3047437eb2e /arch/mips/cavium-octeon
parent6eaae198076080886b9e7d57f4ae06fa782f90ef (diff)
downloadlwn-657c45b303f87d77eb4ef49e9452f1c5d1fc363c.tar.gz
lwn-657c45b303f87d77eb4ef49e9452f1c5d1fc363c.zip
MIPS: 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 was 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. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/cavium-octeon')
-rw-r--r--arch/mips/cavium-octeon/flash_setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/flash_setup.c b/arch/mips/cavium-octeon/flash_setup.c
index c8a8c6d359b9..3395acde4d60 100644
--- a/arch/mips/cavium-octeon/flash_setup.c
+++ b/arch/mips/cavium-octeon/flash_setup.c
@@ -12,7 +12,8 @@
#include <linux/semaphore.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
#include <linux/mtd/partitions.h>
#include <asm/octeon/octeon.h>