soc: aspeed: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Thu, 3 Aug 2023 22:42:58 +0000 (16:42 -0600)
committerArnd Bergmann <arnd@arndb.de>
Sat, 12 Aug 2023 08:31:01 +0000 (10:31 +0200)
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.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230803-dt-header-cleanups-for-soc-v2-18-d8de2cc88bff@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/aspeed/aspeed-lpc-snoop.c
drivers/soc/aspeed/aspeed-p2a-ctrl.c
drivers/soc/aspeed/aspeed-uart-routing.c

index eceeaf8dfbebaf73bd199cda061d5bebd928dcc5..773dbcbc03a6cdbd941bb4f242e2d26e9ac753e6 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/miscdevice.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/poll.h>
 #include <linux/regmap.h>
index 20b5fb2a207cc024aae1c4b4b59cb657560680a2..548f44da28a92efa6e7a9bdd529f359e78599a29 100644 (file)
@@ -18,8 +18,8 @@
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
index ef8b24fd18518a4db9df7013f43312adf269b060..8c89ad312c1d506fdbb3989299cf731b3b581228 100644 (file)
@@ -5,8 +5,7 @@
  */
 #include <linux/device.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
 #include <linux/platform_device.h>