summaryrefslogtreecommitdiffstats
path: root/drivers/clk/socfpga
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-05-01 13:11:31 -0700
committerStephen Boyd <sboyd@codeaurora.org>2015-05-14 17:11:28 -0700
commite45310bfcd21d797f9d36bd4883e600bab645723 (patch)
tree5a186bda0fc5d6cec4ee255a1ca57198fe3cf692 /drivers/clk/socfpga
parent11bee5e19afd11a42a03df9025f82a1bab4d5595 (diff)
downloadlinux-e45310bfcd21d797f9d36bd4883e600bab645723.tar.gz
linux-e45310bfcd21d797f9d36bd4883e600bab645723.tar.bz2
linux-e45310bfcd21d797f9d36bd4883e600bab645723.zip
clk: socfpga: Silence sparse warning
drivers/clk/socfpga/clk-periph.c:79:39: warning: Using plain integer as NULL pointer Cc: Dinh Nguyen <dinguyen@altera.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/socfpga')
-rw-r--r--drivers/clk/socfpga/clk-periph.c2
1 files changed, 1 insertions, 1 deletions
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);