diff options
author | Liao Chen | 2024-08-26 09:18:57 +0000 |
---|---|---|
committer | Jakub Kicinski | 2024-08-27 14:26:05 -0700 |
commit | c76afed1bace01f5634ca18b3a5c85650ea653ad (patch) | |
tree | edbfddd40fc8a9249155ec90cd34be5b8b42a6a3 /drivers | |
parent | 2e25147a6560b684917d7f7142422c9901badfdd (diff) |
net: ag71xx: fix module autoloading
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>
Link: https://patch.msgid.link/20240826091858.369910-3-liaochen4@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/atheros/ag71xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/atheros/ag71xx.c b/drivers/net/ethernet/atheros/ag71xx.c index 543cbea47138..db2a8ade6205 100644 --- a/drivers/net/ethernet/atheros/ag71xx.c +++ b/drivers/net/ethernet/atheros/ag71xx.c @@ -2022,6 +2022,7 @@ static const struct of_device_id ag71xx_match[] = { { .compatible = "qca,qca9560-eth", .data = &ag71xx_dcfg_qca9550 }, {} }; +MODULE_DEVICE_TABLE(of, ag71xx_match); static struct platform_driver ag71xx_driver = { .probe = ag71xx_probe, |