[PATCH 2/2] pmdomain: mediatek: Add MODULE_DESCRIPTION to mtk-scpsys

Justin Yeh justin.yeh at mediatek.com
Tue Jun 2 22:11:51 PDT 2026


Kernel modpost in v6.x emits a warning when a module is missing
MODULE_DESCRIPTION():

  WARNING: modpost: missing MODULE_DESCRIPTION() in mtk-scpsys.o

Add MODULE_DESCRIPTION() to mtk-scpsys.c to silence the warning.

Signed-off-by: Justin Yeh <justin.yeh at mediatek.com>
---
 drivers/pmdomain/mediatek/mtk-scpsys.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/pmdomain/mediatek/mtk-scpsys.c b/drivers/pmdomain/mediatek/mtk-scpsys.c
index efc8f276ffce..bfaa6c8f88dc 100644
--- a/drivers/pmdomain/mediatek/mtk-scpsys.c
+++ b/drivers/pmdomain/mediatek/mtk-scpsys.c
@@ -1151,4 +1151,7 @@ static struct platform_driver scpsys_drv = {
 		.of_match_table = of_scpsys_match_tbl,
 	},
 };
-builtin_platform_driver(scpsys_drv);
+
+module_platform_driver(scpsys_drv);
+MODULE_DESCRIPTION("MediaTek SCPSYS power domain driver");
+MODULE_LICENSE("GPL");
-- 
2.45.2




More information about the linux-arm-kernel mailing list