diff mbox series

[-next] soc: ixp4xx/qmgr: fix module autoloading

Message ID 20240814031004.3876441-1-liaochen4@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] soc: ixp4xx/qmgr: fix module autoloading | expand

Commit Message

liaochen (A) Aug. 14, 2024, 3:10 a.m. UTC
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
 drivers/soc/ixp4xx/ixp4xx-qmgr.c | 1 +
 1 file changed, 1 insertion(+)

Comments

liaochen (A) Aug. 19, 2024, 12:22 p.m. UTC | #1
On 2024/8/14 11:10, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
>   drivers/soc/ixp4xx/ixp4xx-qmgr.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/soc/ixp4xx/ixp4xx-qmgr.c b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
> index cb112f3643e9..dabcf91c3cae 100644
> --- a/drivers/soc/ixp4xx/ixp4xx-qmgr.c
> +++ b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
> @@ -454,6 +454,7 @@ static const struct of_device_id ixp4xx_qmgr_of_match[] = {
>           },
>   	{},
>   };
> +MODULE_DEVICE_TABLE(of, ixp4xx_qmgr_of_match);
>   
>   static struct platform_driver ixp4xx_qmgr_driver = {
>   	.driver = {
Gentle ping

Thanks,
Chen
diff mbox series

Patch

diff --git a/drivers/soc/ixp4xx/ixp4xx-qmgr.c b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
index cb112f3643e9..dabcf91c3cae 100644
--- a/drivers/soc/ixp4xx/ixp4xx-qmgr.c
+++ b/drivers/soc/ixp4xx/ixp4xx-qmgr.c
@@ -454,6 +454,7 @@  static const struct of_device_id ixp4xx_qmgr_of_match[] = {
         },
 	{},
 };
+MODULE_DEVICE_TABLE(of, ixp4xx_qmgr_of_match);
 
 static struct platform_driver ixp4xx_qmgr_driver = {
 	.driver = {