summaryrefslogtreecommitdiff
path: root/drivers/memory/tegra
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2019-04-10 17:04:50 +0300
committerThierry Reding <treding@nvidia.com>2019-04-11 11:53:47 +0300
commitf2222a9e8033ceca2ed8b1addea1d541b536ab7b (patch)
tree9da6994e568f50159f780805aeab4d9e44240946 /drivers/memory/tegra
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
downloadlinux-f2222a9e8033ceca2ed8b1addea1d541b536ab7b.tar.xz
memory: tegra: Make terga20_mc_reset_ops static
Fix sparse warning: drivers/memory/tegra/tegra20.c:277:33: warning: symbol 'terga20_mc_reset_ops' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/memory/tegra')
-rw-r--r--drivers/memory/tegra/tegra20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memory/tegra/tegra20.c b/drivers/memory/tegra/tegra20.c
index 7119e532471c..b786aec089e7 100644
--- a/drivers/memory/tegra/tegra20.c
+++ b/drivers/memory/tegra/tegra20.c
@@ -274,7 +274,7 @@ static int terga20_mc_unblock_dma(struct tegra_mc *mc,
return 0;
}
-const struct tegra_mc_reset_ops terga20_mc_reset_ops = {
+static const struct tegra_mc_reset_ops terga20_mc_reset_ops = {
.hotreset_assert = terga20_mc_hotreset_assert,
.hotreset_deassert = terga20_mc_hotreset_deassert,
.block_dma = terga20_mc_block_dma,