diff mbox series

xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h>

Message ID 20200212101947.9534-1-geert+renesas@glider.be (mailing list archive)
State Awaiting Upstream, archived
Headers show
Series xtensa: Replace <linux/clk-provider.h> by <linux/of_clk.h> | expand

Commit Message

Geert Uytterhoeven Feb. 12, 2020, 10:19 a.m. UTC
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(-)

Comments

Stephen Boyd Feb. 12, 2020, 5:02 p.m. UTC | #1
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>
Max Filippov Feb. 12, 2020, 8:52 p.m. UTC | #2
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>
diff mbox series

Patch

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>