Skip to content

Commit cdbab28

Browse files
robherringnmenon
authored andcommitted
soc: ti: 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 <robh@kernel.org> Link: https://lore.kernel.org/r/20230714175156.4068520-1-robh@kernel.org Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 5542c7c commit cdbab28

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

drivers/soc/ti/k3-ringacc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <linux/io.h>
1010
#include <linux/module.h>
1111
#include <linux/of.h>
12-
#include <linux/of_device.h>
1312
#include <linux/platform_device.h>
1413
#include <linux/sys_soc.h>
1514
#include <linux/dma/ti-cppi5.h>

drivers/soc/ti/omap_prm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <linux/iopoll.h>
1414
#include <linux/module.h>
1515
#include <linux/of.h>
16-
#include <linux/of_device.h>
1716
#include <linux/platform_device.h>
1817
#include <linux/pm_clock.h>
1918
#include <linux/pm_domain.h>

drivers/soc/ti/pruss.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
#include <linux/io.h>
1515
#include <linux/mfd/syscon.h>
1616
#include <linux/module.h>
17+
#include <linux/of.h>
1718
#include <linux/of_address.h>
18-
#include <linux/of_device.h>
19+
#include <linux/of_platform.h>
20+
#include <linux/platform_device.h>
1921
#include <linux/pm_runtime.h>
2022
#include <linux/pruss_driver.h>
2123
#include <linux/regmap.h>

drivers/soc/ti/ti_sci_inta_msi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
#include <linux/irq.h>
1010
#include <linux/irqdomain.h>
1111
#include <linux/msi.h>
12+
#include <linux/of.h>
1213
#include <linux/of_address.h>
13-
#include <linux/of_device.h>
1414
#include <linux/of_irq.h>
15+
#include <linux/platform_device.h>
1516
#include <linux/soc/ti/ti_sci_inta_msi.h>
1617
#include <linux/soc/ti/ti_sci_protocol.h>
1718

0 commit comments

Comments
 (0)