[PATCH -next] soc: mediatek: mtk-svs: add missing MODULE_DEVICE_TABLE

Zeng Heng zengheng4 at huawei.com
Wed Sep 28 08:13:46 PDT 2022


This patch adds missing MODULE_DEVICE_TABLE definition
which generates correct modalias for automatic loading
of this driver when it is built as an external module.

Signed-off-by: Zeng Heng <zengheng4 at huawei.com>
---
 drivers/soc/mediatek/mtk-svs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c
index 0469c9dfeb04..b5c38816b553 100644
--- a/drivers/soc/mediatek/mtk-svs.c
+++ b/drivers/soc/mediatek/mtk-svs.c
@@ -2326,6 +2326,7 @@ static const struct of_device_id svs_of_match[] = {
 		/* Sentinel */
 	},
 };
+MODULE_DEVICE_TABLE(of, svs_of_match);
 
 static struct svs_platform *svs_platform_probe(struct platform_device *pdev)
 {
-- 
2.25.1




More information about the Linux-mediatek mailing list