From: Thierry Reding Date: Mon, 21 Jul 2014 11:16:36 +0000 (+0200) Subject: clk: tegra: Fix a bunch of sparse warnings X-Git-Tag: MMI-PSA29.97-13-9~10216^2~5^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f081c89606f2abba40fafae7133082801d332009;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Thierry Reding --- 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 \ }