clk: socfpga: Use NULL instead of 0
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 8 Oct 2013 11:17:43 +0000 (16:47 +0530)
committerMike Turquette <mturquette@linaro.org>
Fri, 20 Dec 2013 01:47:32 +0000 (17:47 -0800)
'div_reg' is a pointer. Assign NULL instead of 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/socfpga/clk.c

index c3784899f00214bbedd2dcd7d2cbba6e9f0908ae..5983a26a8c5fabb04e36425e6eef74939dffbe56 100644 (file)
@@ -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);