From: Liao Chen Date: Mon, 26 Aug 2024 09:18:58 +0000 (+0000) Subject: net: airoha: fix module autoloading X-Git-Tag: v6.12-rc1~232^2~164^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d2bd8ac9d2494cf9b16c4b00df9424ad24ed18c;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: Lorenzo Bianconi Link: https://patch.msgid.link/20240826091858.369910-4-liaochen4@huawei.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/mediatek/airoha_eth.c b/drivers/net/ethernet/mediatek/airoha_eth.c index 0c012efca3b07..930f180688e5c 100644 --- a/drivers/net/ethernet/mediatek/airoha_eth.c +++ b/drivers/net/ethernet/mediatek/airoha_eth.c @@ -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,