soc: mediatek: add missing MODULE_DEVICE_TABLE
authorZou Wei <zou_wei@huawei.com>
Tue, 11 May 2021 03:55:50 +0000 (11:55 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 12 May 2021 16:29:37 +0000 (18:29 +0200)
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.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1620705350-104687-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-devapc.c

index f1cea041dc5a8235ac9b3b99ff070979abba03b7..7c65ad3d1f8a38f3b75add46415bf777b50c2f41 100644 (file)
@@ -234,6 +234,7 @@ static const struct of_device_id mtk_devapc_dt_match[] = {
        }, {
        },
 };
+MODULE_DEVICE_TABLE(of, mtk_devapc_dt_match);
 
 static int mtk_devapc_probe(struct platform_device *pdev)
 {