Skip to content

Commit 53c5ae6

Browse files
robherringarndb
authored andcommitted
bus: 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]> Acked-by: Laurentiu Tudor <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/20230803-dt-header-cleanups-for-soc-v2-16-d8de2cc88bff@kernel.org Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 544885a commit 53c5ae6

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

drivers/bus/fsl-mc/fsl-mc-bus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/of_device.h>
1515
#include <linux/of_address.h>
1616
#include <linux/ioport.h>
17+
#include <linux/platform_device.h>
1718
#include <linux/slab.h>
1819
#include <linux/limits.h>
1920
#include <linux/bitops.h>

drivers/bus/fsl-mc/fsl-mc-msi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*
88
*/
99

10-
#include <linux/of_device.h>
11-
#include <linux/of_address.h>
1210
#include <linux/of_irq.h>
1311
#include <linux/irq.h>
1412
#include <linux/irqdomain.h>

drivers/bus/hisi_lpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#include <linux/logic_pio.h>
1414
#include <linux/module.h>
1515
#include <linux/of.h>
16-
#include <linux/of_address.h>
1716
#include <linux/of_platform.h>
1817
#include <linux/pci.h>
18+
#include <linux/platform_device.h>
1919
#include <linux/serial_8250.h>
2020
#include <linux/slab.h>
2121

drivers/bus/omap_l3_smx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <linux/io.h>
1616
#include <linux/module.h>
1717
#include <linux/of.h>
18-
#include <linux/of_device.h>
1918

2019
#include "omap_l3_smx.h"
2120

drivers/bus/simple-pm-bus.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
#include <linux/clk.h>
1313
#include <linux/module.h>
14+
#include <linux/of.h>
15+
#include <linux/of_device.h>
1416
#include <linux/of_platform.h>
1517
#include <linux/platform_device.h>
1618
#include <linux/pm_runtime.h>

drivers/bus/sunxi-rsb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <linux/module.h>
4040
#include <linux/of.h>
4141
#include <linux/of_irq.h>
42-
#include <linux/of_platform.h>
42+
#include <linux/of_device.h>
4343
#include <linux/platform_device.h>
4444
#include <linux/pm.h>
4545
#include <linux/pm_runtime.h>

drivers/bus/ti-pwmss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/io.h>
1111
#include <linux/err.h>
1212
#include <linux/pm_runtime.h>
13-
#include <linux/of_device.h>
13+
#include <linux/of_platform.h>
1414

1515
static const struct of_device_id pwmss_of_match[] = {
1616
{ .compatible = "ti,am33xx-pwmss" },

0 commit comments

Comments
 (0)