From: Stephen Boyd Date: Fri, 1 May 2015 19:39:52 +0000 (-0700) Subject: clk: socfpga: Silence sparse warning X-Git-Tag: firefly_0821_release~176^2~1436^2~30^2~48 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b011d386e9efdef6f5776435aad97a5bf302c041;p=firefly-linux-kernel-4.4.55.git clk: socfpga: Silence sparse warning drivers/clk/socfpga/clk-gate.c:227:40: warning: Using plain integer as NULL pointer Cc: Dinh Nguyen Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/socfpga/clk-gate.c b/drivers/clk/socfpga/clk-gate.c index dd3a78c64795..0d5dc84372dc 100644 --- a/drivers/clk/socfpga/clk-gate.c +++ b/drivers/clk/socfpga/clk-gate.c @@ -224,7 +224,7 @@ static void __init __socfpga_gate_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; } rc = of_property_read_u32_array(node, "clk-phase", clk_phase, 2);