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:
11bee5e
)
clk: socfpga: Silence sparse warning
author
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 1 May 2015 20:11:31 +0000
(13:11 -0700)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 15 May 2015 00:11:28 +0000
(17:11 -0700)
drivers/clk/socfpga/clk-periph.c:79:39: 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-periph.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/socfpga/clk-periph.c
b/drivers/clk/socfpga/clk-periph.c
index 46531c34ec9b5b58799c1c538c3f3ef103158502..83aeaa219d14e82800976e476fc24a72a0f032a9 100644
(file)
--- a/
drivers/clk/socfpga/clk-periph.c
+++ b/
drivers/clk/socfpga/clk-periph.c
@@
-76,7
+76,7
@@
static __init void __socfpga_periph_init(struct device_node *node,
periph_clk->shift = div_reg[1];
periph_clk->width = div_reg[2];
} else {
- periph_clk->div_reg =
0
;
+ periph_clk->div_reg =
NULL
;
}
rc = of_property_read_u32(node, "fixed-divider", &fixed_div);