提交 6d7ff6cc 编写于 作者: S Sachin Kamat 提交者: Mike Turquette

clk: socfpga: Use NULL instead of 0

'div_reg' is a pointer. Assign NULL instead of 0.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NDinh Nguyen <dinguyen@altera.com>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 4e100354
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册