diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-10-08 16:47:43 +0530 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-12-19 17:47:32 -0800 |
commit | 6d7ff6cc9cf6ed2d2f701dc6501a77873c3c7d11 (patch) | |
tree | 3ddc392101092feb91399aed37b6c73859ea92ef /drivers/clk/socfpga | |
parent | 4e100354e5b7c8982d1563dca134d375979a8ead (diff) | |
download | op-kernel-dev-6d7ff6cc9cf6ed2d2f701dc6501a77873c3c7d11.zip op-kernel-dev-6d7ff6cc9cf6ed2d2f701dc6501a77873c3c7d11.tar.gz |
clk: socfpga: Use NULL instead of 0
'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>
Diffstat (limited to 'drivers/clk/socfpga')
-rw-r--r-- | drivers/clk/socfpga/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c index c378489..5983a26 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); |