Skip to content

Commit 96b75c9

Browse files
robherringarndb
authored andcommitted
soc: aspeed: 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. Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/20230803-dt-header-cleanups-for-soc-v2-18-d8de2cc88bff@kernel.org Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 5b45759 commit 96b75c9

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

drivers/soc/aspeed/aspeed-lpc-snoop.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <linux/miscdevice.h>
2020
#include <linux/module.h>
2121
#include <linux/of.h>
22-
#include <linux/of_device.h>
2322
#include <linux/platform_device.h>
2423
#include <linux/poll.h>
2524
#include <linux/regmap.h>

drivers/soc/aspeed/aspeed-p2a-ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#include <linux/mm.h>
1919
#include <linux/module.h>
2020
#include <linux/mutex.h>
21+
#include <linux/of.h>
2122
#include <linux/of_address.h>
22-
#include <linux/of_device.h>
2323
#include <linux/platform_device.h>
2424
#include <linux/regmap.h>
2525
#include <linux/slab.h>

drivers/soc/aspeed/aspeed-uart-routing.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
*/
66
#include <linux/device.h>
77
#include <linux/module.h>
8-
#include <linux/of_device.h>
9-
#include <linux/of_platform.h>
8+
#include <linux/of.h>
109
#include <linux/mfd/syscon.h>
1110
#include <linux/regmap.h>
1211
#include <linux/platform_device.h>

0 commit comments

Comments
 (0)