diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-21 13:16:36 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-04-10 16:03:41 +0200 |
commit | f081c89606f2abba40fafae7133082801d332009 (patch) | |
tree | 1075a75658d746090f37759c24c6cf613ac73017 /drivers/clk/tegra | |
parent | 8106462faa3e9f140c8953939745fe2c0d8a6435 (diff) | |
download | linux-f081c89606f2abba40fafae7133082801d332009.tar.bz2 |
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')
-rw-r--r-- | drivers/clk/tegra/clk-tegra-periph.c | 2 |
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 \ } |