From: Stephen Boyd Date: Fri, 1 May 2015 20:11:31 +0000 (-0700) Subject: clk: socfpga: Silence sparse warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e45310bfcd21d797f9d36bd4883e600bab645723;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git clk: socfpga: Silence sparse warning drivers/clk/socfpga/clk-periph.c:79:39: warning: Using plain integer as NULL pointer Cc: Dinh Nguyen Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/socfpga/clk-periph.c b/drivers/clk/socfpga/clk-periph.c index 46531c34ec9b..83aeaa219d14 100644 --- a/drivers/clk/socfpga/clk-periph.c +++ b/drivers/clk/socfpga/clk-periph.c @@ -76,7 +76,7 @@ static __init void __socfpga_periph_init(struct device_node *node, periph_clk->shift = div_reg[1]; periph_clk->width = div_reg[2]; } else { - periph_clk->div_reg = 0; + periph_clk->div_reg = NULL; } rc = of_property_read_u32(node, "fixed-divider", &fixed_div);