ARM: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Subsystems (9)
Geert Uytterhoeven
maintainercover ARM: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Hi all,
The OF clock helpers were moved to <linux/of_clk.h> a while ago. Hence code that is not a clock provider, but just needs to call of_clk_init(), can (and should) include <linux/of_clk.h> instead of <linux/clk-provider.h>.
All these patches are independent of each others, and thus can be applied by the corresponding subsystem maintainers.
Thanks!
Geert Uytterhoeven (7):
ARM/time: Replace <linux/clk-provider.h> by <linux/of_clk.h>
ARM: mediatek: Replace <linux/clk-provider.h> by <linux/of_clk.h>
ARM: mmp: Replace <linux/clk-provider.h> by <linux/of_clk.h>
ARM: rockchip: Replace <linux/clk-provider.h> by <linux/of_clk.h>
ARM: shmobile: Replace <linux/clk-provider.h> by <linux/of_clk.h>
ARM: sunxi: Replace <linux/clk-provider.h> by <linux/of_clk.h>
ARM: zynq: Replace <linux/clk-provider.h> by <linux/of_clk.h>
arch/arm/kernel/time.c | 2 +- arch/arm/mach-mediatek/mediatek.c | 2 +- arch/arm/mach-mmp/mmp-dt.c | 2 +- arch/arm/mach-mmp/mmp2-dt.c | 2 +- arch/arm/mach-rockchip/rockchip.c | 2 +- arch/arm/mach-shmobile/setup-rcar-gen2.c | 2 +- arch/arm/mach-sunxi/sunxi.c | 2 +- arch/arm/mach-zynq/common.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)
Signature · 12 lines
2.17.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsGeert Uytterhoeven
maintainerPATCH 1/7 ARM/time: Replace <linux/clk-provider.h> by <linux/of_clk.h>
The ARM time code is not a clock provider, and just needs to call of_clk_init().
Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
--- arch/arm/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/time.c +1 -1
@@ -8,7 +8,6 @@* This file contains the ARM-specific time handling details: * reading the RTC at bootup, etc... */ -#include <linux/clk-provider.h> #include <linux/clockchips.h> #include <linux/clocksource.h> #include <linux/errno.h>
@@ -17,6 +16,7 @@#include <linux/interrupt.h> #include <linux/irq.h> #include <linux/kernel.h> +#include <linux/of_clk.h> #include <linux/profile.h> #include <linux/sched.h> #include <linux/sched_clock.h>
Signature · 1 line
2.17.1
Re: [PATCH 1/7] ARM/time: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Quoting Geert Uytterhoeven (2020-02-12 02:08:24)
Quoted 7 lines
The ARM time code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---
Geert Uytterhoeven
maintainerPATCH 2/7 ARM: mediatek: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenThe Mediatek platform code is not a clock provider, and just needs to call of_clk_init().
Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
--- arch/arm/mach-mediatek/mediatek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mediatek/mediatek.c +1 -1
@@ -9,7 +9,7 @@#include <linux/io.h> #include <asm/mach/arch.h> #include <linux/of.h> -#include <linux/clk-provider.h> +#include <linux/of_clk.h> #include <linux/clocksource.h>
Signature · 1 line
2.17.1
Re: [PATCH 2/7] ARM: mediatek: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Quoting Geert Uytterhoeven (2020-02-12 02:08:25)
Quoted 7 lines
The Mediatek platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---
Geert Uytterhoeven
maintainerPATCH 3/7 ARM: mmp: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenThe Marvell MMP platform code is not a clock provider, and just needs to call of_clk_init().
Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
--- arch/arm/mach-mmp/mmp-dt.c | 2 +- arch/arm/mach-mmp/mmp2-dt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-mmp/mmp-dt.c +1 -1
@@ -8,7 +8,7 @@#include <linux/irqchip.h> #include <linux/of_platform.h> -#include <linux/clk-provider.h> +#include <linux/of_clk.h> #include <linux/clocksource.h> #include <asm/mach/arch.h> #include <asm/mach/time.h>
arch/arm/mach-mmp/mmp2-dt.c +1 -1
@@ -9,7 +9,7 @@#include <linux/io.h> #include <linux/irqchip.h> #include <linux/of_platform.h> -#include <linux/clk-provider.h> +#include <linux/of_clk.h> #include <linux/clocksource.h> #include <asm/mach/arch.h> #include <asm/mach/time.h>
Signature · 1 line
2.17.1
Re: [PATCH 3/7] ARM: mmp: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Quoting Geert Uytterhoeven (2020-02-12 02:08:26)
Quoted 7 lines
The Marvell MMP platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---
Geert Uytterhoeven
maintainerPATCH 4/7 ARM: rockchip: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenThe Rockchip platform code is not a clock provider, and just needs to call of_clk_init().
Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
--- arch/arm/mach-rockchip/rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/rockchip.c +1 -1
@@ -9,9 +9,9 @@#include <linux/kernel.h> #include <linux/init.h> #include <linux/io.h> +#include <linux/of_clk.h> #include <linux/of_platform.h> #include <linux/irqchip.h> -#include <linux/clk-provider.h> #include <linux/clocksource.h> #include <linux/mfd/syscon.h> #include <linux/regmap.h>
Signature · 1 line
2.17.1
Heiko Stuebner
maintainerRe: [PATCH 4/7] ARM: rockchip: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Am Mittwoch, 12. Februar 2020, 11:08:27 CET schrieb Geert Uytterhoeven:
Quoted 6 lines
The Rockchip platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>
applied for 5.7
Thanks
Heiko
Re: [PATCH 4/7] ARM: rockchip: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenQuoting Geert Uytterhoeven (2020-02-12 02:08:27)
Quoted 7 lines
The Rockchip platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---
Geert Uytterhoeven
maintainerPATCH 5/7 ARM: shmobile: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenThe R-Car Gen2 platform code is not a clock provider, and just needs to call of_clk_init().
Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
---
To be queued in renesas-devel for v5.7.
arch/arm/mach-shmobile/setup-rcar-gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/setup-rcar-gen2.c +1 -1
@@ -7,7 +7,6 @@* Copyright (C) 2014 Ulrich Hecht */ -#include <linux/clk-provider.h> #include <linux/clocksource.h> #include <linux/device.h> #include <linux/dma-contiguous.h>
@@ -15,6 +14,7 @@#include <linux/kernel.h> #include <linux/memblock.h> #include <linux/of.h> +#include <linux/of_clk.h> #include <linux/of_fdt.h> #include <linux/of_platform.h> #include <linux/psci.h>
Signature · 1 line
2.17.1
Re: [PATCH 5/7] ARM: shmobile: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Quoting Geert Uytterhoeven (2020-02-12 02:08:28)
Quoted 7 lines
The R-Car Gen2 platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---
Geert Uytterhoeven
maintainerPATCH 6/7 ARM: sunxi: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenThe Allwinner platform code is not a clock provider, and just needs to call of_clk_init().
Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
--- arch/arm/mach-sunxi/sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-sunxi/sunxi.c +1 -1
@@ -10,9 +10,9 @@* warranty of any kind, whether express or implied. */ -#include <linux/clk-provider.h> #include <linux/clocksource.h> #include <linux/init.h> +#include <linux/of_clk.h> #include <linux/platform_device.h> #include <linux/reset/sunxi.h>
Signature · 1 line
2.17.1
Re: [PATCH 6/7] ARM: sunxi: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Quoting Geert Uytterhoeven (2020-02-12 02:08:29)
Quoted 7 lines
The Allwinner platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---
Maxime Ripard
AppliedRe: [PATCH 6/7] ARM: sunxi: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Quoted 10 lines · Stephen Boyd
Quoting Geert Uytterhoeven (2020-02-12 02:08:29)
Quoted 7 lines
The Allwinner platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>
Applied, thanks!
Maxime
Geert Uytterhoeven
maintainerPATCH 7/7 ARM: zynq: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenThe Zynq platform code is not a clock provider, and just needs to call of_clk_init().
Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
--- arch/arm/mach-zynq/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-zynq/common.c +1 -1
@@ -12,10 +12,10 @@#include <linux/cpumask.h> #include <linux/platform_device.h> #include <linux/clk.h> -#include <linux/clk-provider.h> #include <linux/clk/zynq.h> #include <linux/clocksource.h> #include <linux/of_address.h> +#include <linux/of_clk.h> #include <linux/of_irq.h> #include <linux/of_platform.h> #include <linux/of.h>
Signature · 1 line
2.17.1
Re: [PATCH 7/7] ARM: zynq: Replace <linux/clk-provider.h> by <linux/of_clk.h>
Quoted 17 lines · Geert Uytterhoeven
The Zynq platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>--- arch/arm/mach-zynq/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-zynq/common.c +0
-0@@ -12,10 +12,10 @@#include <linux/cpumask.h>
arch/arm/mach-zynq/common.c line 21
Quoted 10 lines
arch/arm/mach-zynq/common.c +1
-1#include <linux/platform_device.h> #include <linux/clk.h> -#include <linux/clk-provider.h> #include <linux/clk/zynq.h> #include <linux/clocksource.h> #include <linux/of_address.h> +#include <linux/of_clk.h> #include <linux/of_irq.h> #include <linux/of_platform.h> #include <linux/of.h>
Looks good. Applied to zynq/soc.
Thanks,
Michal
Re: [PATCH 7/7] ARM: zynq: Replace <linux/clk-provider.h> by <linux/of_clk.h>
In reply to Geert UytterhoevenQuoting Geert Uytterhoeven (2020-02-12 02:08:30)
Quoted 7 lines
The Zynq platform code is not a clock provider, and just needs to call
of_clk_init().Hence it can include <
linux/of_clk.h> instead of <linux/clk-provider.h>.Signed-off-by Geert Uytterhoeven <[email protected]>---