Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);