mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
27 lines
967 B
Diff
27 lines
967 B
Diff
|
From 7d2bd8ac9d2494cf9b16c4b00df9424ad24ed18c Mon Sep 17 00:00:00 2001
|
||
|
From: Liao Chen <liaochen4@huawei.com>
|
||
|
Date: Mon, 26 Aug 2024 09:18:58 +0000
|
||
|
Subject: [PATCH] net: airoha: 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>
|
||
|
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 | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
--- a/drivers/net/ethernet/mediatek/airoha_eth.c
|
||
|
+++ b/drivers/net/ethernet/mediatek/airoha_eth.c
|
||
|
@@ -2776,6 +2776,7 @@ static const struct of_device_id of_airo
|
||
|
{ .compatible = "airoha,en7581-eth" },
|
||
|
{ /* sentinel */ }
|
||
|
};
|
||
|
+MODULE_DEVICE_TABLE(of, of_airoha_match);
|
||
|
|
||
|
static struct platform_driver airoha_driver = {
|
||
|
.probe = airoha_probe,
|