From: Sachin Kamat Date: Tue, 8 Oct 2013 11:17:43 +0000 (+0530) Subject: clk: socfpga: Use NULL instead of 0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6d7ff6cc9cf6ed2d2f701dc6501a77873c3c7d11;p=openwrt%2Fstaging%2Fblogic.git clk: socfpga: Use NULL instead of 0 'div_reg' is a pointer. Assign NULL instead of 0. Signed-off-by: Sachin Kamat Acked-by: Dinh Nguyen Signed-off-by: Mike Turquette --- diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c index c3784899f002..5983a26a8c5f 100644 --- a/drivers/clk/socfpga/clk.c +++ b/drivers/clk/socfpga/clk.c @@ -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);