]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: airoha: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 09:18:58 +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>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20240826091858.369910-4-liaochen4@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/airoha_eth.c

index 0c012efca3b07f87c79bc721d8189bf3d82fef42..930f180688e5caf1175481a43d243812bc07be07 100644 (file)
@@ -2775,6 +2775,7 @@ static const struct of_device_id of_airoha_match[] = {
        { .compatible = "airoha,en7581-eth" },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, of_airoha_match);
 
 static struct platform_driver airoha_driver = {
        .probe = airoha_probe,