]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ag71xx: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 09:18:57 +0000 (09:18 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Aug 2024 21:26:05 +0000 (14:26 -0700)
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>
drivers/net/ethernet/atheros/ag71xx.c

index 543cbea47138a11bb4c644d6389d5851dad0a022..db2a8ade62055a6d742858441a5efd701afc31b1 100644 (file)
@@ -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,