Skip to contentSkip to conversation

ARM: bcm: Drop unused includes

PATCH Applied Rob Herring 2 participants 2 messages Jul 17, 2023 – Jul 21, 2023

Subsystems (5)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: bcm: Drop unused includes

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-bcm/bcm_5301x.c       | 2 --
 arch/arm/mach-bcm/board_bcm23550.c  | 2 --
 arch/arm/mach-bcm/brcmstb.c         | 1 -
 arch/arm/mach-bcm/platsmp-brcmstb.c | 2 +-
 4 files changed, 1 insertion(+), 6 deletions(-)
arch/arm/mach-bcm/bcm_5301x.c +0 -2
index fe067f6cebb6..cd29496da1ea 100644
@@ -5,8 +5,6 @@
  *
  * Licensed under the GNU/GPL. See COPYING for details.
  */
-#include <linux/of_platform.h>
-#include <asm/hardware/cache-l2x0.h>
 
 #include <asm/mach/arch.h>
 #include <asm/siginfo.h>
arch/arm/mach-bcm/board_bcm23550.c +0 -2
index dd6e9cb785e0..3784b7372ad8 100644
@@ -1,8 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 // Copyright (C) 2016 Broadcom
 
-#include <linux/of_platform.h>
-
 #include <asm/mach/arch.h>
 
 static const char * const bcm23550_dt_compat[] = {
arch/arm/mach-bcm/brcmstb.c +0 -1
index 2e3385ced82a..43bc98e388bf 100644
@@ -3,7 +3,6 @@
 
 #include <linux/init.h>
 #include <linux/irqchip.h>
-#include <linux/of_platform.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
arch/arm/mach-bcm/platsmp-brcmstb.c +1 -1
index 8989299ebdd6..07aeda1d66a8 100644
@@ -10,8 +10,8 @@
 #include <linux/init.h>
 #include <linux/io.h>
 #include <linux/jiffies.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_platform.h>
 #include <linux/printk.h>
 #include <linux/regmap.h>
 #include <linux/smp.h>
Signature · 1 line
2.40.1
maintainer Applied
#1 lore raw

From: Florian Fainelli <[email protected]>

Quoted 7 lines · 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.

---

Applied to https://github.com/Broadcom/stblinux/commits/soc/next, thanks! --
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel