Linux-Clk Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h>
@ 2020-02-12 10:19 Geert Uytterhoeven
  2020-02-12 17:02 ` Stephen Boyd
  2020-02-12 20:52 ` Max Filippov
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2020-02-12 10:19 UTC (permalink / raw)
  To: Chris Zankel, Max Filippov, linux-xtensa
  Cc: linux-clk, linux-kernel, Geert Uytterhoeven

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

diff --git a/arch/xtensa/kernel/time.c b/arch/xtensa/kernel/time.c
index 69db8c93c1f992d2..80bcc65d25f413b3 100644
--- a/arch/xtensa/kernel/time.c
+++ b/arch/xtensa/kernel/time.c
@@ -13,7 +13,7 @@
  */
 
 #include <linux/clk.h>
-#include <linux/clk-provider.h>
+#include <linux/of_clk.h>
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <linux/time.h>
-- 
2.17.1


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

* Re: [PATCH] xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h>
  2020-02-12 10:19 [PATCH] xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h> Geert Uytterhoeven
@ 2020-02-12 17:02 ` Stephen Boyd
  2020-02-12 20:52 ` Max Filippov
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2020-02-12 17:02 UTC (permalink / raw)
  To: Chris Zankel, Geert Uytterhoeven, Max Filippov, linux-xtensa
  Cc: linux-clk, linux-kernel, Geert Uytterhoeven

Quoting Geert Uytterhoeven (2020-02-12 02:19:47)
> The Xtensa 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 <geert+renesas@glider.be>
> ---

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

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

* Re: [PATCH] xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h>
  2020-02-12 10:19 [PATCH] xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h> Geert Uytterhoeven
  2020-02-12 17:02 ` Stephen Boyd
@ 2020-02-12 20:52 ` Max Filippov
  1 sibling, 0 replies; 3+ messages in thread
From: Max Filippov @ 2020-02-12 20:52 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Chris Zankel, open list:TENSILICA XTENSA PORT (xtensa), linux-clk, LKML

On Wed, Feb 12, 2020 at 2:19 AM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
>
> The Xtensa 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 <geert+renesas@glider.be>
> ---
>  arch/xtensa/kernel/time.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Max Filippov <jcmvbkbc@gmail.com>

-- 
Thanks.
-- Max

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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12 10:19 [PATCH] xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h> Geert Uytterhoeven
2020-02-12 17:02 ` Stephen Boyd
2020-02-12 20:52 ` Max Filippov

Linux-Clk Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-clk/0 linux-clk/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-clk linux-clk/ https://lore.kernel.org/linux-clk \
		linux-clk@vger.kernel.org
	public-inbox-index linux-clk

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-clk


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git