summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-02-10 07:56:56 +0000
committerMatthias Brugger <matthias.bgg@gmail.com>2021-04-01 11:27:54 +0200
commitb23ab27b9a1c4720f628fb12fe4cd767e3266c4c (patch)
treec8c3684a84797af9c3155d64336f19dbe82bf837 /drivers/soc
parent1ff1270fca33c582b53b51dc2903f21ae7e1f4bc (diff)
soc: mediatek: Make symbol 'mtk_mutex_driver' static
The sparse tool complains as follows: drivers/soc/mediatek/mtk-mutex.c:464:24: warning: symbol 'mtk_mutex_driver' was not declared. Should it be static? This symbol is not used outside of mtk-mutex.c, so this commit marks it static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Link: https://lore.kernel.org/r/20210210075656.1096251-1-weiyongjun1@huawei.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/mediatek/mtk-mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c
index 718a41beb6af..2e4bcc300576 100644
--- a/drivers/soc/mediatek/mtk-mutex.c
+++ b/drivers/soc/mediatek/mtk-mutex.c
@@ -511,7 +511,7 @@ static const struct of_device_id mutex_driver_dt_match[] = {
};
MODULE_DEVICE_TABLE(of, mutex_driver_dt_match);
-struct platform_driver mtk_mutex_driver = {
+static struct platform_driver mtk_mutex_driver = {
.probe = mtk_mutex_probe,
.remove = mtk_mutex_remove,
.driver = {