diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-05-24 15:55:42 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-06-17 03:45:15 -0400 |
commit | cc27cce229a935ff04e6a5a9a4bca6f7f848e561 (patch) | |
tree | d81fff16a66ba28b98806aefcbf79ae3edf9ed94 | |
parent | baa2559e60eecbad011391d8b374987b4f2b988d (diff) |
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: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/mach-imx/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk.c b/arch/arm/mach-imx/clk.c index 53e8788b0d0f..55bc80a00666 100644 --- a/arch/arm/mach-imx/clk.c +++ b/arch/arm/mach-imx/clk.c | |||
@@ -9,7 +9,7 @@ DEFINE_SPINLOCK(imx_ccm_lock); | |||
9 | 9 | ||
10 | static struct clk * __init imx_obtain_fixed_clock_from_dt(const char *name) | 10 | static struct clk * __init imx_obtain_fixed_clock_from_dt(const char *name) |
11 | { | 11 | { |
12 | struct of_phandle_args phandle = {0}; | 12 | struct of_phandle_args phandle; |
13 | struct clk *clk = ERR_PTR(-ENODEV); | 13 | struct clk *clk = ERR_PTR(-ENODEV); |
14 | char *path; | 14 | char *path; |
15 | 15 | ||