projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f53f551
)
clk: socfpga: Silence sparse warning
author
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 1 May 2015 19:39:52 +0000
(12:39 -0700)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 15 May 2015 00:11:25 +0000
(17:11 -0700)
drivers/clk/socfpga/clk-gate.c:227:40: warning: Using plain integer as NULL pointer
Cc: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/socfpga/clk-gate.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/socfpga/clk-gate.c
b/drivers/clk/socfpga/clk-gate.c
index dd3a78c64795f27c7e171f004f9bb0462f44579a..0d5dc84372dcc2e6f294f9973b7103aba43c0533 100644
(file)
--- a/
drivers/clk/socfpga/clk-gate.c
+++ b/
drivers/clk/socfpga/clk-gate.c
@@
-224,7
+224,7
@@
static void __init __socfpga_gate_init(struct device_node *node,
socfpga_clk->shift = div_reg[1];
socfpga_clk->width = div_reg[2];
} else {
- socfpga_clk->div_reg =
0
;
+ socfpga_clk->div_reg =
NULL
;
}
rc = of_property_read_u32_array(node, "clk-phase", clk_phase, 2);