提交 b011d386 编写于 作者: S Stephen Boyd

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: NStephen Boyd <sboyd@codeaurora.org>
上级 f53f551b
...@@ -224,7 +224,7 @@ static void __init __socfpga_gate_init(struct device_node *node, ...@@ -224,7 +224,7 @@ static void __init __socfpga_gate_init(struct device_node *node,
socfpga_clk->shift = div_reg[1]; socfpga_clk->shift = div_reg[1];
socfpga_clk->width = div_reg[2]; socfpga_clk->width = div_reg[2];
} else { } else {
socfpga_clk->div_reg = 0; socfpga_clk->div_reg = NULL;
} }
rc = of_property_read_u32_array(node, "clk-phase", clk_phase, 2); rc = of_property_read_u32_array(node, "clk-phase", clk_phase, 2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册