Commit 6d7ff6cc authored by Sachin Kamat's avatar Sachin Kamat Committed by Mike Turquette

clk: socfpga: Use NULL instead of 0

'div_reg' is a pointer. Assign NULL instead of 0.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarDinh Nguyen <dinguyen@altera.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment