Remove clk.h from clk-provider.h (ARM part)
Subsystems (13)
cover Remove clk.h from clk-provider.h (ARM part)
This is the first set in a series of patches that removes clk.h from clk-provider.h. This allows us to clearly see what provider drivers are using the consumer API (clk.h) by checking the includes. Currently clk.h is included by clk-provider.h even though it doesn't need to so quite a few clk provider drivers are relying on the implicit include.
Stephen Boyd (7):
ARM: at91: Remove clk-provider.h include
ARM: hisi: Remove clk-provider.h include
ARM: keystone: Remove clk-provider.h include
ARM: mvebu: Remove clk-provider.h include
ARM: orion5x: Remove clk-provider.h include
ARM: s3c64xx: Remove clk-provider.h include
ARM: OMAP2+: Include clk.h
arch/arm/mach-at91/at91rm9200.c | 1 - arch/arm/mach-hisi/hisilicon.c | 1 - arch/arm/mach-keystone/pm_domain.c | 1 - arch/arm/mach-mvebu/board-v7.c | 1 - arch/arm/mach-omap2/clock.c | 1 + arch/arm/mach-omap2/omap_hwmod.c | 1 + arch/arm/mach-omap2/pm24xx.c | 1 + arch/arm/mach-orion5x/board-dt.c | 1 - arch/arm/mach-s3c64xx/common.c | 1 - 9 files changed, 3 insertions(+), 6 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 1/7 ARM: at91: Remove clk-provider.h include
This file doesn't use the clk provider APIs. Remove the include.
---
Please ack if you want this to go through clk-tree.
arch/arm/mach-at91/at91rm9200.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-at91/at91rm9200.c +0 -1
@@ -8,7 +8,6 @@* Licensed under GPLv2 or later. */ -#include <linux/clk-provider.h> #include <linux/of.h> #include <linux/of_platform.h>
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 2/7 ARM: hisi: Remove clk-provider.h include
In reply to Stephen BoydThis file doesn't use the clk provider APIs. Remove the include.
---
Please ack if you want this to go through clk-tree.
arch/arm/mach-hisi/hisilicon.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-hisi/hisilicon.c +0 -1
@@ -11,7 +11,6 @@* published by the Free Software Foundation. */ -#include <linux/clk-provider.h> #include <linux/clocksource.h> #include <linux/irqchip.h>
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 3/7 ARM: keystone: Remove clk-provider.h include
In reply to Stephen BoydThis file doesn't use the clk provider APIs. Remove the include.
---
Please ack if you want this to go through clk-tree.
arch/arm/mach-keystone/pm_domain.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-keystone/pm_domain.c +0 -1
@@ -16,7 +16,6 @@#include <linux/pm_runtime.h> #include <linux/pm_clock.h> #include <linux/platform_device.h> -#include <linux/clk-provider.h> #include <linux/of.h> static struct dev_pm_domain keystone_pm_domain = {
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 4/7 ARM: mvebu: Remove clk-provider.h include
In reply to Stephen BoydThis file doesn't use the clk provider APIs. Remove the include.
---
Please ack if you want this to go through clk-tree.
arch/arm/mach-mvebu/board-v7.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-mvebu/board-v7.c +0 -1
@@ -14,7 +14,6 @@#include <linux/kernel.h> #include <linux/init.h> -#include <linux/clk-provider.h> #include <linux/of_address.h> #include <linux/of_fdt.h> #include <linux/of_platform.h>
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 5/7 ARM: orion5x: Remove clk-provider.h include
In reply to Stephen BoydThis file doesn't use the clk provider APIs. Remove the include.
---
Please ack if you want this to go through clk-tree.
arch/arm/mach-orion5x/board-dt.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-orion5x/board-dt.c +0 -1
@@ -16,7 +16,6 @@#include <linux/of_platform.h> #include <linux/cpu.h> #include <linux/mbus.h> -#include <linux/clk-provider.h> #include <linux/clocksource.h> #include <asm/system_misc.h> #include <asm/mach/arch.h>
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 6/7 ARM: s3c64xx: Remove clk-provider.h include
In reply to Stephen BoydThis file doesn't use the clk provider APIs. Remove the include.
--- arch/arm/mach-s3c64xx/common.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-s3c64xx/common.c +0 -1
@@ -21,7 +21,6 @@#include <linux/kernel.h> #include <linux/init.h> #include <linux/module.h> -#include <linux/clk-provider.h> #include <linux/interrupt.h> #include <linux/ioport.h> #include <linux/serial_core.h>
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 7/7 ARM: OMAP2+: Include clk.h
In reply to Stephen BoydThese files use the consumer API, so include clk.h explicitly.
---
Please ack so this can be routed through clk-tree. Otherwise when clk.h is removed from clk-provider.h these files will fail to compile.
arch/arm/mach-omap2/clock.c | 1 + arch/arm/mach-omap2/omap_hwmod.c | 1 + arch/arm/mach-omap2/pm24xx.c | 1 + 3 files changed, 3 insertions(+)
arch/arm/mach-omap2/clock.c +1 -0
@@ -20,6 +20,7 @@#include <linux/errno.h> #include <linux/err.h> #include <linux/delay.h> +#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/io.h> #include <linux/bitops.h>
arch/arm/mach-omap2/omap_hwmod.c +1 -0
@@ -130,6 +130,7 @@#include <linux/kernel.h> #include <linux/errno.h> #include <linux/io.h> +#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/delay.h> #include <linux/err.h>
arch/arm/mach-omap2/pm24xx.c +1 -0
@@ -25,6 +25,7 @@#include <linux/sysfs.h> #include <linux/module.h> #include <linux/delay.h> +#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/irq.h> #include <linux/time.h>
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH 3/7] ARM: keystone: Remove clk-provider.h include
In reply to Stephen BoydQuoted 10 lines · Stephen Boyd
This file doesn't use the clk provider APIs. Remove the include.
Cc Nishanth Menon <[email protected]>Cc Sekhar Nori <[email protected]>Cc Santosh Shilimkar <[email protected]>Signed-off-by Stephen Boyd <[email protected]>---
Please ack if you want this to go through clk-tree.
Sure.
Quoted 16 lines
arch/arm/mach-keystone/pm_domain.c | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-keystone/pm_domain.c +0
-1@@ -16,7 +16,6 @@#include <linux/pm_runtime.h> #include <linux/pm_clock.h> #include <linux/platform_device.h> -#include <linux/clk-provider.h> #include <linux/of.h> static struct dev_pm_domain keystone_pm_domain = {
Re: [PATCH 7/7] ARM: OMAP2+: Include clk.h
In reply to Stephen BoydQuoted 10 lines · Stephen Boyd
These files use the consumer API, so include
clk.hexplicitly.Cc Tero Kristo <[email protected]>Cc Tony Lindgren <[email protected]>Signed-off-by Stephen Boyd <[email protected]>---
Please ack so this can be routed through clk-tree. Otherwise when
clk.his removed fromclk-provider.hthese files will fail to compile.
Quoted 43 lines
arch/arm/mach-omap2/clock.c | 1 + arch/arm/mach-omap2/omap_hwmod.c | 1 + arch/arm/mach-omap2/pm24xx.c | 1 + 3 files changed, 3 insertions(+)arch/arm/mach-omap2/clock.c +1
-0@@ -20,6 +20,7 @@#include <linux/errno.h> #include <linux/err.h> #include <linux/delay.h> +#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/io.h> #include <linux/bitops.h> arch/arm/mach-omap2/omap_hwmod.c +1
-0@@ -130,6 +130,7 @@#include <linux/kernel.h> #include <linux/errno.h> #include <linux/io.h> +#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/delay.h> #include <linux/err.h> arch/arm/mach-omap2/pm24xx.c +1
-0@@ -25,6 +25,7 @@#include <linux/sysfs.h> #include <linux/module.h> #include <linux/delay.h> +#include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/irq.h> #include <linux/time.h>
Re: [PATCH 1/7] ARM: at91: Remove clk-provider.h include
In reply to Stephen BoydQuoted 6 lines · Stephen Boyd
This file doesn't use the clk provider APIs. Remove the include.
Cc Alexandre Belloni <[email protected]>Cc Boris Brezillon <[email protected]>Cc Nicolas Ferre <[email protected]>Signed-off-by Stephen Boyd <[email protected]>
Quoted 23 lines
---
Please ack if you want this to go through clk-tree.
arch/arm/mach-at91/at91rm9200.c | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-at91/at91rm9200.c +0
-1@@ -8,7 +8,6 @@* Licensed under GPLv2 or later. */ -#include <linux/clk-provider.h> #include <linux/of.h> #include <linux/of_platform.h> Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Signature · 3 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com