]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
soc/tegra: pmc: Fix sparse warning for tegra_pmc_init_tsense_reset()
authorJon Hunter <jonathanh@nvidia.com>
Fri, 4 Dec 2015 14:57:04 +0000 (14:57 +0000)
committerThierry Reding <treding@nvidia.com>
Tue, 5 Apr 2016 13:22:39 +0000 (15:22 +0200)
Sparse reports the following warning for tegra_pmc_init_tsense_reset():

drivers/soc/tegra/pmc.c:741:6: warning: symbol 'tegra_pmc_init_tsense_reset' was not declared. Should it be static?

This function is only used internally by the PMC driver and so fix this
by making it static.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c

index 99ca91f0992991e57fb2a48c6c2dea9679edcd3c..5b6125ecd69a2ea383545dc81073b4d66146a82f 100644 (file)
@@ -729,7 +729,7 @@ static void tegra_pmc_init(struct tegra_pmc *pmc)
        tegra_pmc_writel(value, PMC_CNTRL);
 }
 
-void tegra_pmc_init_tsense_reset(struct tegra_pmc *pmc)
+static void tegra_pmc_init_tsense_reset(struct tegra_pmc *pmc)
 {
        static const char disabled[] = "emergency thermal reset disabled";
        u32 pmu_addr, ctrl_id, reg_addr, reg_data, pinmux;