Commit cc27cce2 authored by Fabio Estevam's avatar Fabio Estevam Committed by Shawn Guo

ARM: imx: clk: No need to initialize phandle struct

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
parent baa2559e
...@@ -9,7 +9,7 @@ DEFINE_SPINLOCK(imx_ccm_lock); ...@@ -9,7 +9,7 @@ DEFINE_SPINLOCK(imx_ccm_lock);
static struct clk * __init imx_obtain_fixed_clock_from_dt(const char *name) 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); struct clk *clk = ERR_PTR(-ENODEV);
char *path; char *path;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment