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