diff mbox series

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

Message ID 20220928151346.1942977-1-zengheng4@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] soc: mediatek: mtk-svs: add missing MODULE_DEVICE_TABLE | expand

Commit Message

Zeng Heng Sept. 28, 2022, 3:13 p.m. UTC
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@huawei.com>
---
 drivers/soc/mediatek/mtk-svs.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Matthias Brugger Feb. 1, 2023, 1:35 p.m. UTC | #1
On 28/09/2022 17:13, Zeng Heng wrote:
> 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@huawei.com>

Applied, sorry for the delay.

Matthias

> ---
>   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)
>   {
diff mbox series

Patch

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)
 {