mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] clk: shmobile: fix sparse NULL pointer warning
@ 2015-01-14  1:16 weiyj_lk
  2015-01-14  4:09 ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: weiyj_lk @ 2015-01-14  1:16 UTC (permalink / raw)
  To: Mike Turquette, Stephen Boyd, Geert Uytterhoeven, Ulrich Hecht,
	Simon Horman
  Cc: Wei Yongjun, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Fixes the following sparse warnings:

drivers/clk/shmobile/clk-sh73a0.c:57:17: warning:
 Using plain integer as NULL pointer

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/clk/shmobile/clk-sh73a0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/shmobile/clk-sh73a0.c b/drivers/clk/shmobile/clk-sh73a0.c
index 8574a6d..cd529cf 100644
--- a/drivers/clk/shmobile/clk-sh73a0.c
+++ b/drivers/clk/shmobile/clk-sh73a0.c
@@ -54,7 +54,7 @@ static struct div4_clk div4_clks[] = {
 	{ "m2", "pll1", CPG_FRQCRA,  0 },
 	{ "zx", "pll1", CPG_FRQCRB, 12 },
 	{ "hp", "pll1", CPG_FRQCRB,  4 },
-	{ NULL, 0, 0, 0 },
+	{ NULL, NULL, 0, 0 },
 };
 
 static const struct clk_div_table div4_div_table[] = {


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

* Re: [PATCH -next] clk: shmobile: fix sparse NULL pointer warning
  2015-01-14  1:16 [PATCH -next] clk: shmobile: fix sparse NULL pointer warning weiyj_lk
@ 2015-01-14  4:09 ` Simon Horman
  2015-01-14  4:11   ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2015-01-14  4:09 UTC (permalink / raw)
  To: weiyj_lk
  Cc: Mike Turquette, Stephen Boyd, Geert Uytterhoeven, Ulrich Hecht,
	Wei Yongjun, linux-kernel

On Wed, Jan 14, 2015 at 09:16:23AM +0800, weiyj_lk@163.com wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Fixes the following sparse warnings:
> 
> drivers/clk/shmobile/clk-sh73a0.c:57:17: warning:
>  Using plain integer as NULL pointer
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Acked-by: Simon Horman <horms+renesas@verge.net.au>

> ---
>  drivers/clk/shmobile/clk-sh73a0.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/shmobile/clk-sh73a0.c b/drivers/clk/shmobile/clk-sh73a0.c
> index 8574a6d..cd529cf 100644
> --- a/drivers/clk/shmobile/clk-sh73a0.c
> +++ b/drivers/clk/shmobile/clk-sh73a0.c
> @@ -54,7 +54,7 @@ static struct div4_clk div4_clks[] = {
>  	{ "m2", "pll1", CPG_FRQCRA,  0 },
>  	{ "zx", "pll1", CPG_FRQCRB, 12 },
>  	{ "hp", "pll1", CPG_FRQCRB,  4 },
> -	{ NULL, 0, 0, 0 },
> +	{ NULL, NULL, 0, 0 },
>  };
>  
>  static const struct clk_div_table div4_div_table[] = {
> 

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

* Re: [PATCH -next] clk: shmobile: fix sparse NULL pointer warning
  2015-01-14  4:09 ` Simon Horman
@ 2015-01-14  4:11   ` Simon Horman
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2015-01-14  4:11 UTC (permalink / raw)
  To: weiyj_lk
  Cc: Mike Turquette, Stephen Boyd, Geert Uytterhoeven, Ulrich Hecht,
	Wei Yongjun, linux-kernel

On Wed, Jan 14, 2015 at 01:09:10PM +0900, Simon Horman wrote:
> On Wed, Jan 14, 2015 at 09:16:23AM +0800, weiyj_lk@163.com wrote:
> > From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> > 
> > Fixes the following sparse warnings:
> > 
> > drivers/clk/shmobile/clk-sh73a0.c:57:17: warning:
> >  Using plain integer as NULL pointer
> > 
> > Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> Acked-by: Simon Horman <horms+renesas@verge.net.au>

Sorry for the miss-fire there.

As the patch that added this problem is queue up in my tree
I will add this patch there.

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

end of thread, other threads:[~2015-01-14  4:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-14  1:16 [PATCH -next] clk: shmobile: fix sparse NULL pointer warning weiyj_lk
2015-01-14  4:09 ` Simon Horman
2015-01-14  4:11   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®