Commit f081c896 authored by Thierry Reding's avatar Thierry Reding

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: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 8106462f
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
.clk_id = _clk_id, \ .clk_id = _clk_id, \
.p.parent_name = _parent_name, \ .p.parent_name = _parent_name, \
.periph = TEGRA_CLK_PERIPH(0, 0, 0, 0, 0, 0, 0, \ .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 \ .flags = _flags \
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment