linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] csky: Replace <linux/clk-provider.h> by <linux/of_clk.h>
@ 2020-02-12 10:10 Geert Uytterhoeven
  2020-02-12 17:06 ` Stephen Boyd
  2020-02-13  2:59 ` Guo Ren
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2020-02-12 10:10 UTC (permalink / raw)
  To: Guo Ren; +Cc: linux-clk, linux-kernel, Geert Uytterhoeven

The C-Sky 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 <geert+renesas@glider.be>
---
 arch/csky/kernel/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/csky/kernel/time.c b/arch/csky/kernel/time.c
index b5fc9447d93f2307..52379d866fe45f28 100644
--- a/arch/csky/kernel/time.c
+++ b/arch/csky/kernel/time.c
@@ -1,8 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0
 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
 
-#include <linux/clk-provider.h>
 #include <linux/clocksource.h>
+#include <linux/of_clk.h>
 
 void __init time_init(void)
 {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] csky: Replace <linux/clk-provider.h> by <linux/of_clk.h>
  2020-02-12 10:10 [PATCH] csky: Replace <linux/clk-provider.h> by <linux/of_clk.h> Geert Uytterhoeven
@ 2020-02-12 17:06 ` Stephen Boyd
  2020-02-13  2:59 ` Guo Ren
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2020-02-12 17:06 UTC (permalink / raw)
  To: Geert Uytterhoeven, Guo Ren; +Cc: linux-clk, linux-kernel, Geert Uytterhoeven

Quoting Geert Uytterhoeven (2020-02-12 02:10:58)
> The C-Sky 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 <geert+renesas@glider.be>
> ---

Reviewed-by: Stephen Boyd <sboyd@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] csky: Replace <linux/clk-provider.h> by <linux/of_clk.h>
  2020-02-12 10:10 [PATCH] csky: Replace <linux/clk-provider.h> by <linux/of_clk.h> Geert Uytterhoeven
  2020-02-12 17:06 ` Stephen Boyd
@ 2020-02-13  2:59 ` Guo Ren
  1 sibling, 0 replies; 3+ messages in thread
From: Guo Ren @ 2020-02-13  2:59 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-clk, Linux Kernel Mailing List

Acked-by: Guo Ren <guoren@kernel.org>

On Wed, Feb 12, 2020 at 6:11 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
>
> The C-Sky 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 <geert+renesas@glider.be>
> ---
>  arch/csky/kernel/time.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/csky/kernel/time.c b/arch/csky/kernel/time.c
> index b5fc9447d93f2307..52379d866fe45f28 100644
> --- a/arch/csky/kernel/time.c
> +++ b/arch/csky/kernel/time.c
> @@ -1,8 +1,8 @@
>  // SPDX-License-Identifier: GPL-2.0
>  // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
>
> -#include <linux/clk-provider.h>
>  #include <linux/clocksource.h>
> +#include <linux/of_clk.h>
>
>  void __init time_init(void)
>  {
> --
> 2.17.1
>


-- 
Best Regards
 Guo Ren

ML: https://lore.kernel.org/linux-csky/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-13  3:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12 10:10 [PATCH] csky: Replace <linux/clk-provider.h> by <linux/of_clk.h> Geert Uytterhoeven
2020-02-12 17:06 ` Stephen Boyd
2020-02-13  2:59 ` Guo Ren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).