diff options
author | Rob Herring <robh@kernel.org> | 2023-07-18 00:54:40 +0200 |
---|---|---|
committer | Dinh Nguyen <dinguyen@kernel.org> | 2023-07-20 21:38:38 +0200 |
commit | 37e2d7d23765c3948e21cb361100f1baeb65f4f3 (patch) | |
tree | befe8726bfaaade8a6a7df7c7b0dcc9c6ec16374 /arch/arm/mach-socfpga/socfpga.c | |
parent | Linux 6.5-rc1 (diff) | |
download | linux-37e2d7d23765c3948e21cb361100f1baeb65f4f3.tar.xz linux-37e2d7d23765c3948e21cb361100f1baeb65f4f3.zip |
ARM: socfpga: 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 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.
A couple of other includes are unused and can be dropped too.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch/arm/mach-socfpga/socfpga.c')
-rw-r--r-- | arch/arm/mach-socfpga/socfpga.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index 9e4cb2ffd580..4332af2d8b86 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -3,13 +3,11 @@ * Copyright (C) 2012-2015 Altera Corporation */ #include <linux/irqchip.h> +#include <linux/of.h> #include <linux/of_address.h> -#include <linux/of_irq.h> -#include <linux/of_platform.h> #include <linux/reboot.h> #include <linux/reset/socfpga.h> -#include <asm/hardware/cache-l2x0.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/cacheflush.h> |