summaryrefslogtreecommitdiff
path: root/drivers/clk/tegra/clk-tegra-periph.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-07-21 15:16:36 +0400
committerThierry Reding <treding@nvidia.com>2015-04-10 17:03:41 +0300
commitf081c89606f2abba40fafae7133082801d332009 (patch)
tree1075a75658d746090f37759c24c6cf613ac73017 /drivers/clk/tegra/clk-tegra-periph.c
parent8106462faa3e9f140c8953939745fe2c0d8a6435 (diff)
downloadlinux-f081c89606f2abba40fafae7133082801d332009.tar.xz
clk: tegra: Fix a bunch of sparse warnings
The second to last parameter of the TEGRA_CLK_PERIPH macro denotes a table and should therefore users should pass in NULL instead of 0. Fixes a bunch of sparse warnings like this: warning: Using plain integer as NULL pointer Reviewed-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk-tegra-periph.c')
-rw-r--r--drivers/clk/tegra/clk-tegra-periph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/tegra/clk-tegra-periph.c b/drivers/clk/tegra/clk-tegra-periph.c
index cef0727b9eec..46af9244ba74 100644
--- a/drivers/clk/tegra/clk-tegra-periph.c
+++ b/drivers/clk/tegra/clk-tegra-periph.c
@@ -218,7 +218,7 @@
.clk_id = _clk_id, \
.p.parent_name = _parent_name, \
.periph = TEGRA_CLK_PERIPH(0, 0, 0, 0, 0, 0, 0, \
- _clk_num, _gate_flags, 0, NULL), \
+ _clk_num, _gate_flags, NULL, NULL), \
.flags = _flags \
}