提交 1e52efdf 编写于 作者: J Jon Hunter 提交者: Thierry Reding

soc/tegra: pmc: Fix sparse warning for tegra_pmc_init_tsense_reset()

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: NJon Hunter <jonathanh@nvidia.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 35b67291
...@@ -729,7 +729,7 @@ static void tegra_pmc_init(struct tegra_pmc *pmc) ...@@ -729,7 +729,7 @@ static void tegra_pmc_init(struct tegra_pmc *pmc)
tegra_pmc_writel(value, PMC_CNTRL); 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"; static const char disabled[] = "emergency thermal reset disabled";
u32 pmu_addr, ctrl_id, reg_addr, reg_data, pinmux; u32 pmu_addr, ctrl_id, reg_addr, reg_data, pinmux;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册