ARM: bcm: Drop unused includes
Commit Message
Several includes are not needed, so drop them.
of_platform.h is not needed, but it implicitly includes of.h which is
needed.
Signed-off-by: Rob Herring <robh@kernel.org>
---
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(-)
Comments
From: Florian Fainelli <f.fainelli@gmail.com>
On Mon, 17 Jul 2023 16:57:03 -0600, Rob Herring <robh@kernel.org> wrote:
> Several includes are not needed, so drop them.
>
> of_platform.h is not needed, but it implicitly includes of.h which is
> needed.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
Applied to https://github.com/Broadcom/stblinux/commits/soc/next, thanks!
--
Florian
@@ -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>
@@ -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[] = {
@@ -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>
@@ -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>