diff mbox series

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

Message ID 20200506090452.1290-1-geert+renesas@glider.be (mailing list archive)
State Mainlined
Commit ce61b490965e6d4068641cf33b8ecf6864c3e105
Headers show
Series MIPS: ingenic: Replace <linux/clk-provider.h> by <linux/of_clk.h> | expand

Commit Message

Geert Uytterhoeven May 6, 2020, 9:04 a.m. UTC
The JZ4740 setup 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>.

Fixes: f932449c11dabb4b ("MIPS: ingenic: Drop obsolete code, merge the rest in setup.c")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/mips/jz4740/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Cercueil May 6, 2020, 10:39 a.m. UTC | #1
Hi,

Le mer. 6 mai 2020 à 11:04, Geert Uytterhoeven 
<geert+renesas@glider.be> a écrit :
> The JZ4740 setup 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>.
> 
> Fixes: f932449c11dabb4b ("MIPS: ingenic: Drop obsolete code, merge 
> the rest in setup.c")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Looks good to me. Thanks for your patch.

Reviewed-by: Paul Cercueil <paul@crapouillou.net>

Cheers,
-Paul

> ---
>  arch/mips/jz4740/setup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/mips/jz4740/setup.c b/arch/mips/jz4740/setup.c
> index 81428ddcaa9736f9..142cf127bf9e1c9f 100644
> --- a/arch/mips/jz4740/setup.c
> +++ b/arch/mips/jz4740/setup.c
> @@ -5,13 +5,13 @@
>   *  JZ4740 setup code
>   */
> 
> -#include <linux/clk-provider.h>
>  #include <linux/clocksource.h>
>  #include <linux/init.h>
>  #include <linux/io.h>
>  #include <linux/irqchip.h>
>  #include <linux/kernel.h>
>  #include <linux/libfdt.h>
> +#include <linux/of_clk.h>
>  #include <linux/of_fdt.h>
>  #include <linux/pm.h>
>  #include <linux/suspend.h>
> --
> 2.17.1
>
Thomas Bogendoerfer May 7, 2020, 8:40 a.m. UTC | #2
On Wed, May 06, 2020 at 11:04:52AM +0200, Geert Uytterhoeven wrote:
> The JZ4740 setup 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>.
> 
> Fixes: f932449c11dabb4b ("MIPS: ingenic: Drop obsolete code, merge the rest in setup.c")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  arch/mips/jz4740/setup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Does this need to go via mips-fixes ? Or is mips-next good enough ?

Thomas.
Geert Uytterhoeven May 7, 2020, 9:11 a.m. UTC | #3
Hi Thomas,

On Thu, May 7, 2020 at 11:05 AM Thomas Bogendoerfer
<tsbogend@alpha.franken.de> wrote:
> On Wed, May 06, 2020 at 11:04:52AM +0200, Geert Uytterhoeven wrote:
> > The JZ4740 setup 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>.
> >
> > Fixes: f932449c11dabb4b ("MIPS: ingenic: Drop obsolete code, merge the rest in setup.c")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> >  arch/mips/jz4740/setup.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Does this need to go via mips-fixes ? Or is mips-next good enough ?

The commit fixed is not yet upstream, only in next, and the fix is
non-critical.  It could even be merged into the original commit,
depending on your rebase policy.

Thanks!

Gr{oetje,eeting}s,

                        Geert
Thomas Bogendoerfer May 7, 2020, 10 a.m. UTC | #4
On Thu, May 07, 2020 at 11:11:10AM +0200, Geert Uytterhoeven wrote:
> Hi Thomas,
> 
> On Thu, May 7, 2020 at 11:05 AM Thomas Bogendoerfer
> <tsbogend@alpha.franken.de> wrote:
> > On Wed, May 06, 2020 at 11:04:52AM +0200, Geert Uytterhoeven wrote:
> > > The JZ4740 setup 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>.
> > >
> > > Fixes: f932449c11dabb4b ("MIPS: ingenic: Drop obsolete code, merge the rest in setup.c")
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > > ---
> > >  arch/mips/jz4740/setup.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > Does this need to go via mips-fixes ? Or is mips-next good enough ?
> 
> The commit fixed is not yet upstream, only in next, and the fix is
> non-critical.  It could even be merged into the original commit,
> depending on your rebase policy.

no rebase on mips-next. I've applied your patch to mips-next.

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/jz4740/setup.c b/arch/mips/jz4740/setup.c
index 81428ddcaa9736f9..142cf127bf9e1c9f 100644
--- a/arch/mips/jz4740/setup.c
+++ b/arch/mips/jz4740/setup.c
@@ -5,13 +5,13 @@ 
  *  JZ4740 setup code
  */
 
-#include <linux/clk-provider.h>
 #include <linux/clocksource.h>
 #include <linux/init.h>
 #include <linux/io.h>
 #include <linux/irqchip.h>
 #include <linux/kernel.h>
 #include <linux/libfdt.h>
+#include <linux/of_clk.h>
 #include <linux/of_fdt.h>
 #include <linux/pm.h>
 #include <linux/suspend.h>