diff options
author | Rob Herring <robh@kernel.org> | 2023-07-24 23:02:42 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-08-02 14:22:19 +0200 |
commit | 81d7cac4d11cc65f29be68c72759429d5194347a (patch) | |
tree | 87099e0cfa138f573f5b81e2a961e539bc3ff35d /arch/powerpc/sysdev/of_rtc.c | |
parent | powerpc/64s/radix: combine final TLB flush and lazy tlb mm shootdown IPIs (diff) | |
download | linux-81d7cac4d11cc65f29be68c72759429d5194347a.tar.xz linux-81d7cac4d11cc65f29be68c72759429d5194347a.zip |
powerpc: 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>
[mpe: Fixup maple/setup.c which needs platform_device]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230724210247.778034-1-robh@kernel.org
Diffstat (limited to 'arch/powerpc/sysdev/of_rtc.c')
-rw-r--r-- | arch/powerpc/sysdev/of_rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/of_rtc.c b/arch/powerpc/sysdev/of_rtc.c index 420f949b7485..2211937d3788 100644 --- a/arch/powerpc/sysdev/of_rtc.c +++ b/arch/powerpc/sysdev/of_rtc.c @@ -5,10 +5,10 @@ * Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation. */ #include <linux/kernel.h> -#include <linux/of.h> #include <linux/init.h> +#include <linux/of.h> #include <linux/of_address.h> -#include <linux/of_platform.h> +#include <linux/platform_device.h> #include <linux/slab.h> #include <asm/prom.h> |