projects
/
GitHub
/
moto-9609
/
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:
4e10035
)
clk: socfpga: Use NULL instead of 0
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 8 Oct 2013 11:17:43 +0000
(16:47 +0530)
committer
Mike Turquette
<mturquette@linaro.org>
Fri, 20 Dec 2013 01:47:32 +0000
(17:47 -0800)
'div_reg' is a pointer. Assign NULL instead of 0.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/socfpga/clk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/socfpga/clk.c
b/drivers/clk/socfpga/clk.c
index c3784899f00214bbedd2dcd7d2cbba6e9f0908ae..5983a26a8c5fabb04e36425e6eef74939dffbe56 100644
(file)
--- a/
drivers/clk/socfpga/clk.c
+++ b/
drivers/clk/socfpga/clk.c
@@
-290,7
+290,7
@@
static void __init socfpga_gate_clk_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
;
}
of_property_read_string(node, "clock-output-names", &clk_name);