ARM: imx: clk: No need to initialize phandle struct
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 24 May 2013 19:55:42 +0000 (16:55 -0300)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 17 Jun 2013 07:45:15 +0000 (15:45 +0800)
commit 84344b43c (ARM: i.MX5: Allow DT clock providers) introduce the following
sparse warning:

arch/arm/mach-imx/clk.c:12:43: warning: Using plain integer as NULL pointer

There is no need to initialize phandle, so remove it.

Cc: Martin Fuzzey <mfuzzey@parkeon.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/clk.c

index 53e8788b0d0f21a7f7e40ceb763e7e417333461a..55bc80a00666412b8d7c53daaba26dced5e2eb95 100644 (file)
@@ -9,7 +9,7 @@ DEFINE_SPINLOCK(imx_ccm_lock);
 
 static struct clk * __init imx_obtain_fixed_clock_from_dt(const char *name)
 {
-       struct of_phandle_args phandle = {0};
+       struct of_phandle_args phandle;
        struct clk *clk = ERR_PTR(-ENODEV);
        char *path;