diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-05-01 19:39:52 (GMT) |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-05-15 00:11:25 (GMT) |
commit | b011d386e9efdef6f5776435aad97a5bf302c041 (patch) | |
tree | f31e46d7293931e529e50b4c48c3af605b0bd917 | |
parent | f53f551b11d112f6cdd6ab9ca320bfd890a9b021 (diff) | |
download | linux-b011d386e9efdef6f5776435aad97a5bf302c041.tar.xz |
clk: socfpga: Silence sparse warning
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>
-rw-r--r-- | drivers/clk/socfpga/clk-gate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/socfpga/clk-gate.c b/drivers/clk/socfpga/clk-gate.c index dd3a78c..0d5dc84 100644 --- 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); |