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]>
Reviewed-by: Stephen Boyd <[email protected]>
---
v2:
- Add Reviewed-by.
---
arch/arm/mach-mediatek/mediatek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
index f6f102fa9e23a0f8..e6e9f93a1f01c7d0 100644
--- a/arch/arm/mach-mediatek/mediatek.c
+++ b/arch/arm/mach-mediatek/mediatek.c
@@ -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>
--
2.17.1
On 05/05/2020 17:45, Geert Uytterhoeven wrote:
> 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]>
> Reviewed-by: Stephen Boyd <[email protected]>
applied to v5.7-next/soc
Thanks!
> ---
> v2:
> - Add Reviewed-by.
> ---
> arch/arm/mach-mediatek/mediatek.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
> index f6f102fa9e23a0f8..e6e9f93a1f01c7d0 100644
> --- a/arch/arm/mach-mediatek/mediatek.c
> +++ b/arch/arm/mach-mediatek/mediatek.c
> @@ -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>
>
>
>