Skip to contentSkip to conversation

ARM: DT include cleanups

PATCH Applied Rob Herring 10 participants 39 messages Aug 3, 2023 – Aug 22, 2023

Subsystems (29)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: DT include cleanups

Arnd, This is all the remaining ARM and SoC related patches of DT include cleanups which have not be applied by sub-arch maintainers.

A few of these are v2, but most are just resends of v1.

---
Rob Herring (23):
ARM: l2x0: Add explicit includes for init and types
ARM: sti: Drop unused includes
ARM: alpine: Drop unused includes
ARM: berlin: Drop unused includes
ARM: dove: Drop unused includes
ARM: hpe: Drop unused includes
ARM: mmp: Drop unused includes
ARM: nomadik: Drop unused includes
ARM: npcm: Drop unused includes
ARM: nspire: Drop unused includes
ARM: pxa: Drop unused includes
ARM: rockchip: Drop unused includes
ARM: versatile: Drop unused includes
ARM: mvebu: Explicitly include correct DT includes
ARM: spear: Explicitly include correct DT includes
bus: Explicitly include correct DT includes
firmware: Explicitly include correct DT includes
soc: aspeed: Explicitly include correct DT includes
soc: mediatek: Explicitly include correct DT includes
soc: rockchip: Explicitly include correct DT includes
soc: sunxi: Explicitly include correct DT includes
soc: xilinx: Explicitly include correct DT includes
soc: fsl: Explicitly include correct DT includes

 arch/arm/include/asm/hardware/cache-l2x0.h |  2 ++
 arch/arm/mach-alpine/alpine_machine.c      |  2 --
 arch/arm/mach-berlin/berlin.c              |  5 -----
 arch/arm/mach-dove/common.c                |  2 --
 arch/arm/mach-hpe/gxp.c                    |  1 -
 arch/arm/mach-mmp/mmp-dt.c                 |  3 ---
 arch/arm/mach-mmp/mmp2-dt.c                |  4 ----
 arch/arm/mach-mmp/mmp3.c                   |  4 ----
 arch/arm/mach-mvebu/kirkwood.c             |  1 +
 arch/arm/mach-mvebu/pmsu.c                 |  2 +-
 arch/arm/mach-nomadik/cpu-8815.c           | 13 -------------
 arch/arm/mach-npcm/platsmp.c               |  3 ---
 arch/arm/mach-nspire/nspire.c              |  9 +--------
 arch/arm/mach-pxa/pxa-dt.c                 |  6 ------
 arch/arm/mach-rockchip/rockchip.c          |  6 +-----
 arch/arm/mach-spear/spear1340.c            |  2 +-
 arch/arm/mach-sti/board-dt.c               |  2 --
 arch/arm/mach-versatile/realview.c         |  2 --
 drivers/bus/fsl-mc/fsl-mc-bus.c            |  1 +
 drivers/bus/fsl-mc/fsl-mc-msi.c            |  2 --
 drivers/bus/hisi_lpc.c                     |  2 +-
 drivers/bus/omap_l3_smx.c                  |  1 -
 drivers/bus/simple-pm-bus.c                |  2 ++
 drivers/bus/sunxi-rsb.c                    |  2 +-
 drivers/bus/ti-pwmss.c                     |  2 +-
 drivers/firmware/arm_scmi/driver.c         |  4 ++--
 drivers/firmware/imx/imx-dsp.c             |  1 -
 drivers/firmware/imx/imx-scu-irq.c         |  1 +
 drivers/firmware/imx/imx-scu.c             |  1 +
 drivers/firmware/mtk-adsp-ipc.c            |  1 -
 drivers/firmware/raspberrypi.c             |  1 +
 drivers/firmware/scpi_pm_domain.c          |  3 ++-
 drivers/firmware/stratix10-rsu.c           |  1 -
 drivers/firmware/tegra/bpmp.c              |  3 +--
 drivers/firmware/xilinx/zynqmp.c           |  1 +
 drivers/soc/aspeed/aspeed-lpc-snoop.c      |  1 -
 drivers/soc/aspeed/aspeed-p2a-ctrl.c       |  2 +-
 drivers/soc/aspeed/aspeed-uart-routing.c   |  3 +--
 drivers/soc/fsl/dpaa2-console.c            |  3 ++-
 drivers/soc/fsl/qe/qe.c                    |  3 ++-
 drivers/soc/fsl/qe/qe_common.c             |  1 -
 drivers/soc/fsl/qe/qe_tdm.c                |  4 +---
 drivers/soc/mediatek/mtk-cmdq-helper.c     |  1 +
 drivers/soc/mediatek/mtk-devapc.c          |  2 +-
 drivers/soc/mediatek/mtk-mmsys.c           |  2 +-
 drivers/soc/mediatek/mtk-mutex.c           |  3 +--
 drivers/soc/mediatek/mtk-pmic-wrap.c       |  3 ++-
 drivers/soc/rockchip/grf.c                 |  2 +-
 drivers/soc/sunxi/sunxi_sram.c             |  2 +-
 drivers/soc/xilinx/zynqmp_power.c          |  1 +
 50 files changed, 38 insertions(+), 93 deletions(-)

---
base-commit: fb4327106e5250ee360d0d8b056c1eef7eeb9a98
change-id: 20230803-dt-header-cleanups-for-soc-cf95dbe606bd

Best regards,

Signature · 1 line
Rob Herring <[email protected]>
#1 lore raw

PATCH v2 1/23 ARM: l2x0: Add explicit includes for init and types

The cache-l2x0.h header uses u32 type and the __init and __iomem attributes, so it should have explicit includes for those.

---
 arch/arm/include/asm/hardware/cache-l2x0.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/hardware/cache-l2x0.h +2 -0
index a6d4ee86ba54..5a7ee70f561c 100644
@@ -9,6 +9,8 @@
 #define __ASM_ARM_HARDWARE_L2X0_H
 
 #include <linux/errno.h>
+#include <linux/init.h>
+#include <linux/types.h>
 
 #define L2X0_CACHE_ID			0x000
 #define L2X0_CACHE_TYPE			0x004
Signature · 1 line
2.40.1
#2 lore raw

PATCH v2 2/23 ARM: sti: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-sti/board-dt.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-sti/board-dt.c +0 -2
index ffecbf29646f..488084b61b4a 100644
@@ -4,8 +4,6 @@
  * Author(s): Srinivas Kandagatla <[email protected]>
  */
 
-#include <linux/irq.h>
-#include <linux/of_platform.h>
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 
Signature · 1 line
2.40.1
maintainer Acked-by on v2 2/23
#3 lore raw

Re: [PATCH v2 02/23] ARM: sti: Drop unused includes

Quoted 13 lines · Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-sti/board-dt.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-sti/board-dt.c +0 -0
index ffecbf29646f..488084b61b4a 100644

arch/arm/mach-sti/board-dt.c line 9

Quoted 8 lines
arch/arm/mach-sti/board-dt.c +0 -2
@@ -4,8 +4,6 @@
  * Author(s): Srinivas Kandagatla <[email protected]>
  */
 
-#include <linux/irq.h>
-#include <linux/of_platform.h>
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 

Thanks
Patrice

#4 lore raw

PATCH v2 3/23 ARM: alpine: Drop unused includes

In reply to Rob Herring

of_platform.h is not needed, drop it.

---
 arch/arm/mach-alpine/alpine_machine.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-alpine/alpine_machine.c +0 -2
index d256a99e9b99..bc491bbbabf8 100644
@@ -5,8 +5,6 @@
  * Copyright (C) 2015 Annapurna Labs Ltd.
  */
 
-#include <linux/of_platform.h>
-
 #include <asm/mach/arch.h>
 
 static const char * const al_match[] __initconst = {
Signature · 1 line
2.40.1
#5 lore raw

PATCH v2 4/23 ARM: berlin: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-berlin/berlin.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/mach-berlin/berlin.c +0 -5
index 2424ad40190c..13d5c899f09e 100644
@@ -8,11 +8,6 @@
  *  (c) Marvell International Ltd.
  */
 
-#include <linux/init.h>
-#include <linux/io.h>
-#include <linux/kernel.h>
-#include <linux/of_platform.h>
-#include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 
 static const char * const berlin_dt_compat[] = {
Signature · 1 line
2.40.1
maintainer
#6 lore raw

PATCH v2 4/23 ARM: berlin: Drop unused includes

Quoted 3 lines · Rob Herring

Several includes are not needed, so drop them.

Thanks!

PS: what would be the better merge path? Arnd take it directly with each sub-maintainers' ack or something else?

Quoted 24 lines
---
 arch/arm/mach-berlin/berlin.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/mach-berlin/berlin.c +0 -5
index 2424ad40190c..13d5c899f09e 100644
@@ -8,11 +8,6 @@
  *  (c) Marvell International Ltd.
  */
 
-#include <linux/init.h>
-#include <linux/io.h>
-#include <linux/kernel.h>
-#include <linux/of_platform.h>
-#include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 
 static const char * const berlin_dt_compat[] = {
Signature · 2 lines
-- 
2.40.1
#7 lore raw

PATCH v2 5/23 ARM: dove: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-dove/common.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-dove/common.c +0 -2
index cd4ae7e4768d..3aea90bbb41a 100644
@@ -9,8 +9,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/init.h>
 #include <linux/io.h>
-#include <linux/of.h>
-#include <linux/of_platform.h>
 #include <linux/platform_data/dma-mv_xor.h>
 #include <linux/platform_data/usb-ehci-orion.h>
 #include <linux/platform_device.h>
Signature · 1 line
2.40.1
#8 lore raw

PATCH v2 6/23 ARM: hpe: Drop unused includes

In reply to Rob Herring

of_platform.h is not needed, so drop it.

---
 arch/arm/mach-hpe/gxp.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm/mach-hpe/gxp.c +0 -1
index ef3341373006..581c8da517b8 100644
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P. */
 
-#include <linux/of_platform.h>
 #include <asm/mach/arch.h>
 
 static const char * const gxp_board_dt_compat[] = {
Signature · 1 line
2.40.1
#9 lore raw

PATCH v2 7/23 ARM: mmp: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-mmp/mmp-dt.c  | 3 ---
 arch/arm/mach-mmp/mmp2-dt.c | 4 ----
 arch/arm/mach-mmp/mmp3.c    | 4 ----
 3 files changed, 11 deletions(-)
arch/arm/mach-mmp/mmp-dt.c +0 -3
index 3f43c0867dca..8479996a8f2e 100644
@@ -6,12 +6,9 @@
  *  Author: Haojian Zhuang <[email protected]>
  */
 
-#include <linux/irqchip.h>
-#include <linux/of_platform.h>
 #include <linux/of_clk.h>
 #include <linux/clocksource.h>
 #include <asm/mach/arch.h>
-#include <asm/mach/time.h>
 #include <asm/hardware/cache-tauros2.h>
 
 #include "common.h"
arch/arm/mach-mmp/mmp2-dt.c +0 -4
index 34a5fe4b3949..e5ddc327651b 100644
@@ -6,13 +6,9 @@
  *  Author: Haojian Zhuang <[email protected]>
  */
 
-#include <linux/io.h>
-#include <linux/irqchip.h>
-#include <linux/of_platform.h>
 #include <linux/of_clk.h>
 #include <linux/clocksource.h>
 #include <asm/mach/arch.h>
-#include <asm/mach/time.h>
 #include <asm/hardware/cache-tauros2.h>
 
 #include "common.h"
arch/arm/mach-mmp/mmp3.c +0 -4
index b0e86964f302..073a4ee219cb 100644
@@ -5,10 +5,6 @@
  *  Copyright (C) 2019 Lubomir Rintel <[email protected]>
  */
 
-#include <linux/io.h>
-#include <linux/irqchip.h>
-#include <linux/of_platform.h>
-#include <linux/clk-provider.h>
 #include <asm/mach/arch.h>
 #include <asm/hardware/cache-l2x0.h>
 
Signature · 1 line
2.40.1
#10 lore raw

PATCH v2 8/23 ARM: nomadik: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-nomadik/cpu-8815.c | 13 -------------
 1 file changed, 13 deletions(-)
arch/arm/mach-nomadik/cpu-8815.c +0 -13
index 51f88a297c4e..0eed60917dcf 100644
@@ -5,25 +5,12 @@
 
 #include <linux/types.h>
 #include <linux/init.h>
-#include <linux/device.h>
-#include <linux/amba/bus.h>
-#include <linux/platform_device.h>
 #include <linux/io.h>
-#include <linux/slab.h>
-#include <linux/irq.h>
-#include <linux/dma-mapping.h>
-#include <linux/of_irq.h>
-#include <linux/of_address.h>
-#include <linux/of_platform.h>
 
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
-#include <asm/mach/time.h>
 #include <asm/mach-types.h>
 
-#include <asm/cacheflush.h>
-#include <asm/hardware/cache-l2x0.h>
-
 /*
  * These are the only hard-coded address offsets we still have to use.
  */
Signature · 1 line
2.40.1
#12 lore raw

PATCH v2 9/23 ARM: npcm: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-npcm/platsmp.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/mach-npcm/platsmp.c +0 -3
index 21633c70fe7f..41891d3aa124 100644
@@ -5,12 +5,9 @@
 #define pr_fmt(fmt) "nuvoton,npcm7xx-smp: " fmt
 
 #include <linux/delay.h>
-#include <linux/device.h>
 #include <linux/smp.h>
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
-#include <linux/of_platform.h>
 #include <linux/of_address.h>
 #include <asm/cacheflush.h>
 #include <asm/smp.h>
Signature · 1 line
2.40.1
#13 lore raw

PATCH v2 10/23 ARM: nspire: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them. io.h was implicitly included and is needed.

---
 arch/arm/mach-nspire/nspire.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
arch/arm/mach-nspire/nspire.c +1 -8
index 2d4abb0288b9..d20974a9fbc1 100644
@@ -5,17 +5,10 @@
  *	Copyright (C) 2013 Daniel Tang <[email protected]>
  */
 #include <linux/init.h>
-#include <linux/of_irq.h>
-#include <linux/of_address.h>
-#include <linux/of_platform.h>
-#include <linux/irqchip.h>
-#include <linux/irqchip/arm-vic.h>
-#include <linux/clkdev.h>
-#include <linux/amba/bus.h>
+#include <linux/io.h>
 
 #include <asm/mach/arch.h>
 #include <asm/mach-types.h>
-#include <asm/mach/map.h>
 
 #include "mmio.h"
 
Signature · 1 line
2.40.1
#14 lore raw

PATCH v2 11/23 ARM: pxa: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-pxa/pxa-dt.c | 6 ------
 1 file changed, 6 deletions(-)
arch/arm/mach-pxa/pxa-dt.c +0 -6
index 5e5d543fdf46..a292de91dce5 100644
@@ -5,13 +5,7 @@
  *  Copyright (C) 2012 Daniel Mack
  */
 
-#include <linux/irq.h>
-#include <linux/irqdomain.h>
-#include <linux/of_irq.h>
-#include <linux/of_platform.h>
 #include <asm/mach/arch.h>
-#include <asm/mach/time.h>
-#include "irqs.h"
 
 #include "generic.h"
 
Signature · 1 line
2.40.1
#15 lore raw

PATCH v2 12/23 ARM: rockchip: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

of_platform.h is not needed, but it implicitly includes of.h which is needed.

---
 arch/arm/mach-rockchip/rockchip.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
arch/arm/mach-rockchip/rockchip.c +1 -5
index beea4564eed4..82102fbabf92 100644
@@ -9,15 +9,11 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/io.h>
+#include <linux/of.h>
 #include <linux/of_clk.h>
-#include <linux/of_platform.h>
-#include <linux/irqchip.h>
 #include <linux/clocksource.h>
-#include <linux/mfd/syscon.h>
-#include <linux/regmap.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
-#include <asm/hardware/cache-l2x0.h>
 #include "core.h"
 #include "pm.h"
 
Signature · 1 line
2.40.1
#17 lore raw

PATCH v2 13/23 ARM: versatile: Drop unused includes

In reply to Rob Herring

Several includes are not needed, so drop them.

---
 arch/arm/mach-versatile/realview.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-versatile/realview.c +0 -2
index feab66080ba2..a3933e2373d5 100644
@@ -4,9 +4,7 @@
  *
  * Author: Linus Walleij <[email protected]>
  */
-#include <linux/of_platform.h>
 #include <asm/mach/arch.h>
-#include <asm/hardware/cache-l2x0.h>
 
 static const char *const realview_dt_platform_compat[] __initconst = {
 	"arm,realview-eb",
Signature · 1 line
2.40.1
#19 lore raw

PATCH v2 14/23 ARM: mvebu: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
 arch/arm/mach-mvebu/kirkwood.c | 1 +
 arch/arm/mach-mvebu/pmsu.c     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-mvebu/kirkwood.c +1 -0
index 8ff34753e760..73b2a86d6489 100644
@@ -15,6 +15,7 @@
 #include <linux/of_address.h>
 #include <linux/of_net.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <asm/hardware/cache-feroceon-l2.h>
 #include <asm/mach/arch.h>
arch/arm/mach-mvebu/pmsu.c +1 -1
index 6f366d8c4231..79c5171f06ec 100644
@@ -23,8 +23,8 @@
 #include <linux/kernel.h>
 #include <linux/mbus.h>
 #include <linux/mvebu-pmsu.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/resource.h>
 #include <linux/slab.h>
Signature · 1 line
2.40.1
#20 lore raw

PATCH v2 15/23 ARM: spear: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
 arch/arm/mach-spear/spear1340.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-spear/spear1340.c +1 -1
index a391f154eff9..70986ef6c877 100644
@@ -10,7 +10,7 @@
 
 #define pr_fmt(fmt) "SPEAr1340: " fmt
 
-#include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <asm/mach/arch.h>
 #include "generic.h"
 
Signature · 1 line
2.40.1
#21 lore raw

PATCH v2 16/23 bus: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
 drivers/bus/fsl-mc/fsl-mc-bus.c | 1 +
 drivers/bus/fsl-mc/fsl-mc-msi.c | 2 --
 drivers/bus/hisi_lpc.c          | 2 +-
 drivers/bus/omap_l3_smx.c       | 1 -
 drivers/bus/simple-pm-bus.c     | 2 ++
 drivers/bus/sunxi-rsb.c         | 2 +-
 drivers/bus/ti-pwmss.c          | 2 +-
 7 files changed, 6 insertions(+), 6 deletions(-)
drivers/bus/fsl-mc/fsl-mc-bus.c +1 -0
index 4352745a923c..7c57e7d2ff55 100644
@@ -14,6 +14,7 @@
 #include <linux/of_device.h>
 #include <linux/of_address.h>
 #include <linux/ioport.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/limits.h>
 #include <linux/bitops.h>
drivers/bus/fsl-mc/fsl-mc-msi.c +0 -2
index f3f8af9426c9..82cd69f7884c 100644
@@ -7,8 +7,6 @@
  *
  */
 
-#include <linux/of_device.h>
-#include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/irq.h>
 #include <linux/irqdomain.h>
drivers/bus/hisi_lpc.c +1 -1
index 5b65a48f17e7..cdc4e38c113e 100644
@@ -13,9 +13,9 @@
 #include <linux/logic_pio.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
 #include <linux/of_platform.h>
 #include <linux/pci.h>
+#include <linux/platform_device.h>
 #include <linux/serial_8250.h>
 #include <linux/slab.h>
 
drivers/bus/omap_l3_smx.c +0 -1
index bb1606f5ce2d..9ba18c39c671 100644
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 
 #include "omap_l3_smx.h"
 
drivers/bus/simple-pm-bus.c +2 -0
index 4da77ca7b75a..aafcc481de91 100644
@@ -11,6 +11,8 @@
 
 #include <linux/clk.h>
 #include <linux/module.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
drivers/bus/sunxi-rsb.c +1 -1
index 2aefd5dde3c9..db0ed4e5d315 100644
@@ -39,7 +39,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/of_platform.h>
+#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/pm_runtime.h>
drivers/bus/ti-pwmss.c +1 -1
index e9c26c94251b..480a4de76cd4 100644
@@ -10,7 +10,7 @@
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/pm_runtime.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 
 static const struct of_device_id pwmss_of_match[] = {
 	{ .compatible	= "ti,am33xx-pwmss" },
Signature · 1 line
2.40.1
Acked-by on v2 16/23
#22 lore raw

Re: [PATCH v2 16/23] bus: Explicitly include correct DT includes

Quoted 10 lines · Rob Herring

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.

Quoted 10 lines
---
  drivers/bus/fsl-mc/fsl-mc-bus.c | 1 +
  drivers/bus/fsl-mc/fsl-mc-msi.c | 2 --
  drivers/bus/hisi_lpc.c          | 2 +-
  drivers/bus/omap_l3_smx.c       | 1 -
  drivers/bus/simple-pm-bus.c     | 2 ++
  drivers/bus/sunxi-rsb.c         | 2 +-
  drivers/bus/ti-pwmss.c          | 2 +-
  7 files changed, 6 insertions(+), 6 deletions(-)

For drivers/bus/fsl-mc bits:

---
Thanks & Best Regards, Laurentiu

maintainer Acked-by on v2 16/23
#23 lore raw

Re: [PATCH v2 16/23] bus: Explicitly include correct DT includes

In reply to Rob Herring

Dne petek, 04. avgust 2023 ob 00:42:56 CEST je Rob Herring napisal(a):

Quoted 9 lines

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.

Quoted 8 lines
---
 drivers/bus/fsl-mc/fsl-mc-bus.c | 1 +
 drivers/bus/fsl-mc/fsl-mc-msi.c | 2 --
 drivers/bus/hisi_lpc.c          | 2 +-
 drivers/bus/omap_l3_smx.c       | 1 -
 drivers/bus/simple-pm-bus.c     | 2 ++
 drivers/bus/sunxi-rsb.c         | 2 +-

for sunxi-rsb:

Best regards,
Jernej

Quoted 1 line
 drivers/bus/ti-pwmss.c          | 2 +-
#24 lore raw

PATCH v2 17/23 firmware: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
 drivers/firmware/arm_scmi/driver.c | 4 ++--
 drivers/firmware/imx/imx-dsp.c     | 1 -
 drivers/firmware/imx/imx-scu-irq.c | 1 +
 drivers/firmware/imx/imx-scu.c     | 1 +
 drivers/firmware/mtk-adsp-ipc.c    | 1 -
 drivers/firmware/raspberrypi.c     | 1 +
 drivers/firmware/scpi_pm_domain.c  | 3 ++-
 drivers/firmware/stratix10-rsu.c   | 1 -
 drivers/firmware/tegra/bpmp.c      | 3 +--
 drivers/firmware/xilinx/zynqmp.c   | 1 +
 10 files changed, 9 insertions(+), 8 deletions(-)
drivers/firmware/arm_scmi/driver.c +2 -2
index b5957cc12fee..87383c05424b 100644
@@ -28,8 +28,8 @@
 #include <linux/hashtable.h>
 #include <linux/list.h>
 #include <linux/module.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/processor.h>
 #include <linux/refcount.h>
 #include <linux/slab.h>
drivers/firmware/imx/imx-dsp.c +0 -1
index a6c06d7476c3..3dba590a2a95 100644
@@ -10,7 +10,6 @@
 #include <linux/kernel.h>
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
drivers/firmware/imx/imx-scu-irq.c +1 -0
index d9dcc20945c6..a149537e0639 100644
@@ -10,6 +10,7 @@
 #include <linux/firmware/imx/ipc.h>
 #include <linux/firmware/imx/sci.h>
 #include <linux/mailbox_client.h>
+#include <linux/of.h>
 #include <linux/suspend.h>
 
 #define IMX_SC_IRQ_FUNC_ENABLE	1
drivers/firmware/imx/imx-scu.c +1 -0
index 47db49911e7b..2e5914f3a110 100644
@@ -16,6 +16,7 @@
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 
drivers/firmware/mtk-adsp-ipc.c +0 -1
index 3c071f814455..85e94ddc7204 100644
@@ -8,7 +8,6 @@
 #include <linux/kernel.h>
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
drivers/firmware/raspberrypi.c +1 -0
index c3bc29e0a488..f66efaa5196d 100644
@@ -10,6 +10,7 @@
 #include <linux/kref.h>
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
drivers/firmware/scpi_pm_domain.c +2 -1
index 800673910b51..2231e6dd2070 100644
@@ -8,7 +8,8 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/scpi_protocol.h>
 
drivers/firmware/stratix10-rsu.c +0 -1
index e51c95f8d445..ab3074705380 100644
@@ -10,7 +10,6 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/of.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/firmware/intel/stratix10-svc-client.h>
 #include <linux/string.h>
drivers/firmware/tegra/bpmp.c +1 -2
index 17bd3590aaa2..51d062e0c3f1 100644
@@ -8,8 +8,7 @@
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/semaphore.h>
drivers/firmware/xilinx/zynqmp.c +1 -0
index f8c4eb2b43f8..eb9ad5ae393f 100644
@@ -18,6 +18,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
 #include <linux/hashtable.h>
Signature · 1 line
2.40.1
Acked-by on v2 17/23
#25 lore raw

Re: [PATCH v2 17/23] firmware: Explicitly include correct DT includes

Quoted 9 lines · Rob Herring

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.

Quoted 6 lines
---
 drivers/firmware/arm_scmi/driver.c | 4 ++--
 drivers/firmware/scpi_pm_domain.c  | 3 ++-

(For SCMI changes)

Signature · 2 lines
Regards,
Sudeep
#26 lore raw

PATCH v2 18/23 soc: aspeed: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
 drivers/soc/aspeed/aspeed-lpc-snoop.c    | 1 -
 drivers/soc/aspeed/aspeed-p2a-ctrl.c     | 2 +-
 drivers/soc/aspeed/aspeed-uart-routing.c | 3 +--
 3 files changed, 2 insertions(+), 4 deletions(-)
drivers/soc/aspeed/aspeed-lpc-snoop.c +0 -1
index eceeaf8dfbeb..773dbcbc03a6 100644
@@ -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>
drivers/soc/aspeed/aspeed-p2a-ctrl.c +1 -1
index 20b5fb2a207c..548f44da28a9 100644
@@ -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>
drivers/soc/aspeed/aspeed-uart-routing.c +1 -2
index 59123e1f27ac..3a4c1f28cb34 100644
@@ -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>
Signature · 1 line
2.40.1
#27 lore raw

PATCH v2 19/23 soc: mediatek: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
v2:
- Drop files moved to genpd

---
 drivers/soc/mediatek/mtk-cmdq-helper.c | 1 +
 drivers/soc/mediatek/mtk-devapc.c      | 2 +-
 drivers/soc/mediatek/mtk-mmsys.c       | 2 +-
 drivers/soc/mediatek/mtk-mutex.c       | 3 +--
 drivers/soc/mediatek/mtk-pmic-wrap.c   | 3 ++-
 5 files changed, 6 insertions(+), 5 deletions(-)
drivers/soc/mediatek/mtk-cmdq-helper.c +1 -0
index c1837a468267..b0cd071c4719 100644
@@ -7,6 +7,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/module.h>
 #include <linux/mailbox_controller.h>
+#include <linux/of.h>
 #include <linux/soc/mediatek/mtk-cmdq.h>
 
 #define CMDQ_WRITE_ENABLE_MASK	BIT(0)
drivers/soc/mediatek/mtk-devapc.c +1 -1
index bad139cb117e..b28feb967540 100644
@@ -8,7 +8,7 @@
 #include <linux/iopoll.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
 
drivers/soc/mediatek/mtk-mmsys.c +1 -1
index 9619faa796e8..ffb75711a1da 100644
@@ -8,7 +8,7 @@
 #include <linux/device.h>
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/soc/mediatek/mtk-mmsys.h>
drivers/soc/mediatek/mtk-mutex.c +1 -2
index 4aa0913817ae..9d9f5ae578ac 100644
@@ -6,8 +6,7 @@
 #include <linux/clk.h>
 #include <linux/iopoll.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
-#include <linux/of_address.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/soc/mediatek/mtk-mmsys.h>
drivers/soc/mediatek/mtk-pmic-wrap.c +2 -1
index 11095b8de71a..efd9cae212dc 100644
@@ -8,7 +8,8 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/reset.h>
Signature · 1 line
2.40.1
#28 lore raw

PATCH v2 20/23 soc: rockchip: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
 drivers/soc/rockchip/grf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/rockchip/grf.c +1 -1
index d768c5a70174..5fd62046b28a 100644
@@ -7,7 +7,7 @@
 
 #include <linux/err.h>
 #include <linux/mfd/syscon.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 
Signature · 1 line
2.40.1
#29 lore raw

PATCH v2 21/23 soc: sunxi: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
v2:
- Drop sun20i-ppu.c which moved

---
 drivers/soc/sunxi/sunxi_sram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/sunxi/sunxi_sram.c +1 -1
index 4c4864cd2342..4458b2e0562b 100644
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 
Signature · 1 line
2.40.1
maintainer Acked-by on v2 21/23
#30 lore raw

Re: [PATCH v2 21/23] soc: sunxi: Explicitly include correct DT includes

Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):

Quoted 10 lines

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.

Should I take this through sunxi tree?

Best regards,
Jernej

Quoted 19 lines

---
v2:
- Drop sun20i-ppu.c which moved

---
 drivers/soc/sunxi/sunxi_sram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/sunxi/sunxi_sram.c +1 -1
index 4c4864cd2342..4458b2e0562b 100644
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
maintainer Applied
#31 lore raw

Re: [PATCH v2 21/23] soc: sunxi: Explicitly include correct DT includes

In reply to Rob Herring

Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):

Quoted 10 lines

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.

Applied to sunxi tree, thanks!

Best regards,
Jernej

Quoted 19 lines

---
v2:
- Drop sun20i-ppu.c which moved

---
 drivers/soc/sunxi/sunxi_sram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/sunxi/sunxi_sram.c +1 -1
index 4c4864cd2342..4458b2e0562b 100644
@@ -15,7 +15,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
#32 lore raw

PATCH v2 21/23 soc: sunxi: Explicitly include correct DT includes

Quoted 11 lines · On Sun, Aug 6, 2023 at 6:42?AM Jernej ?krabec <[email protected]> wrote:

Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):

Quoted 9 lines

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.

Quoted 3 lines
Quoted 1 line

Applied to sunxi tree, thanks!

Did you really? Doesn't look like this is in linux-next.

Rob

#33 lore raw

PATCH v2 21/23 soc: sunxi: Explicitly include correct DT includes

Quoted 13 lines · On Tue, Aug 22, 2023 at 5:30?PM Rob Herring <[email protected]> wrote:
Quoted 11 lines · On Sun, Aug 6, 2023 at 6:42?AM Jernej ?krabec <[email protected]> wrote:

Dne petek, 04. avgust 2023 ob 00:43:01 CEST je Rob Herring napisal(a):

Quoted 9 lines

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.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Applied to sunxi tree, thanks!

Did you really? Doesn't look like this is in linux-next.

Sorry, it's just the genpd part that isn't since that moved.

Rob

#34 lore raw

PATCH v2 22/23 soc: xilinx: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
 drivers/soc/xilinx/zynqmp_power.c | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/xilinx/zynqmp_power.c +1 -0
index 641dcc958911..913417506468 100644
@@ -11,6 +11,7 @@
 
 #include <linux/mailbox_client.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reboot.h>
 #include <linux/suspend.h>
Signature · 1 line
2.40.1
maintainer
#35 lore raw

Re: [PATCH v2 22/23] soc: xilinx: Explicitly include correct DT includes

Hi Rob,

Quoted 20 lines · Rob Herring

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.

---
  drivers/soc/xilinx/zynqmp_power.c | 1 +
  1 file changed, 1 insertion(+)
drivers/soc/xilinx/zynqmp_power.c +0 -0
index 641dcc958911..913417506468 100644

drivers/soc/xilinx/zynqmp_power.c line 17

Quoted 7 lines
drivers/soc/xilinx/zynqmp_power.c +1 -0
@@ -11,6 +11,7 @@
 
  #include <linux/mailbox_client.h>
  #include <linux/module.h>
+#include <linux/of.h>
  #include <linux/platform_device.h>
  #include <linux/reboot.h>
  #include <linux/suspend.h>

I was checking and I was on CC on the v1 but I didn't get this to my inbox. Anyway let me apply this to my queue.

Arnd: If you want to take it directly I am fine with it too.

Thanks,
Michal

#36 lore raw

PATCH v2 23/23 soc: fsl: Explicitly include correct DT includes

In reply to Rob Herring

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.

---
v2:
- Add qe.c

---
 drivers/soc/fsl/dpaa2-console.c | 3 ++-
 drivers/soc/fsl/qe/qe.c         | 3 ++-
 drivers/soc/fsl/qe/qe_common.c  | 1 -
 drivers/soc/fsl/qe/qe_tdm.c     | 4 +---
 4 files changed, 5 insertions(+), 6 deletions(-)
drivers/soc/fsl/dpaa2-console.c +2 -1
index 53917410f2bd..1dca693b6b38 100644
@@ -9,9 +9,10 @@
 #define pr_fmt(fmt) "dpaa2-console: " fmt
 
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/miscdevice.h>
+#include <linux/platform_device.h>
 #include <linux/uaccess.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
drivers/soc/fsl/qe/qe.c +2 -1
index 58746e570d14..3ee0c7c1e9a4 100644
@@ -25,7 +25,8 @@
 #include <linux/iopoll.h>
 #include <linux/crc32.h>
 #include <linux/mod_devicetable.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <soc/fsl/qe/immap_qe.h>
 #include <soc/fsl/qe/qe.h>
 
drivers/soc/fsl/qe/qe_common.c +0 -1
index a0cb8e746879..9729ce86db59 100644
@@ -16,7 +16,6 @@
 #include <linux/genalloc.h>
 #include <linux/init.h>
 #include <linux/list.h>
-#include <linux/of_device.h>
 #include <linux/spinlock.h>
 #include <linux/export.h>
 #include <linux/of.h>
drivers/soc/fsl/qe/qe_tdm.c +1 -3
index 7d7d78d3ee50..a3b691875c8e 100644
@@ -9,9 +9,7 @@
  */
 #include <linux/io.h>
 #include <linux/kernel.h>
-#include <linux/of_address.h>
-#include <linux/of_irq.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
 #include <soc/fsl/qe/qe_tdm.h>
 
 static int set_tdm_framer(const char *tdm_framer_type)
Signature · 1 line
2.40.1
maintainer Applied
#37 lore raw

Re: (subset) [PATCH v2 00/23] ARM: DT include cleanups

In reply to Rob Herring
Quoted 6 lines · Rob Herring

Arnd, This is all the remaining ARM and SoC related patches of DT include cleanups which have not be applied by sub-arch maintainers.

A few of these are v2, but most are just resends of v1.

Applied, thanks!

I didn't find a reply to the thread in terms of it going in alltogether, so went forward and picked the Rockchip things I missed before.

[12/23] ARM: rockchip: Drop unused includes

        commit: 8cbdf5d2880923070198c240534f4cca3e04dfb1
[20/23] soc: rockchip: Explicitly include correct DT includes
        commit: fc7696e2ae81404c6ca176e7ebbddd4b19c40953

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>
#38 lore raw
In reply to Rob Herring
This series was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 8 lines · On Thu, 03 Aug 2023 16:42:40 -0600 you wrote:

Arnd, This is all the remaining ARM and SoC related patches of DT include cleanups which have not be applied by sub-arch maintainers.

A few of these are v2, but most are just resends of v1.

[...]

Here is the summary with links:
- [v2,01/23] ARM: l2x0: Add explicit includes for init and types

    https://git.kernel.org/soc/soc/c/c0b736d3b578
  - [v2,02/23] ARM: sti: Drop unused includes
    https://git.kernel.org/soc/soc/c/b8678ca577e1
  - [v2,03/23] ARM: alpine: Drop unused includes
    https://git.kernel.org/soc/soc/c/17f269e70382
  - [v2,04/23] ARM: berlin: Drop unused includes
    https://git.kernel.org/soc/soc/c/fe260f5e65e1
  - [v2,05/23] ARM: dove: Drop unused includes
    https://git.kernel.org/soc/soc/c/9d2af67ba0c8
  - [v2,06/23] ARM: hpe: Drop unused includes
    https://git.kernel.org/soc/soc/c/fcd346e833e9
  - [v2,07/23] ARM: mmp: Drop unused includes
    https://git.kernel.org/soc/soc/c/89ce0a2fc143
  - [v2,08/23] ARM: nomadik: Drop unused includes
    https://git.kernel.org/soc/soc/c/23174ee58007
  - [v2,09/23] ARM: npcm: Drop unused includes
    https://git.kernel.org/soc/soc/c/152d11a0b509
  - [v2,10/23] ARM: nspire: Drop unused includes
    https://git.kernel.org/soc/soc/c/ce2ab51a1861
  - [v2,11/23] ARM: pxa: Drop unused includes
    https://git.kernel.org/soc/soc/c/48f1138f9c43
  - [v2,12/23] ARM: rockchip: Drop unused includes
    https://git.kernel.org/soc/soc/c/ab7c1ad11da4
  - [v2,13/23] ARM: versatile: Drop unused includes
    https://git.kernel.org/soc/soc/c/d6c97c96d2b4
  - [v2,14/23] ARM: mvebu: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/1402f75d9bdc
  - [v2,15/23] ARM: spear: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/544885aa0750
  - [v2,16/23] bus: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/53c5ae638da0
  - [v2,17/23] firmware: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/5b45759c0b58
  - [v2,18/23] soc: aspeed: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/96b75c9d4bf2
  - [v2,19/23] soc: mediatek: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/d01e0aec6d50
  - [v2,20/23] soc: rockchip: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/0e7ed4dda9ef
  - [v2,21/23] soc: sunxi: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/adedd5d129b1
  - [v2,22/23] soc: xilinx: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/1c37c34e2d1e
  - [v2,23/23] soc: fsl: Explicitly include correct DT includes
    https://git.kernel.org/soc/soc/c/5df5b2e04749

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html