Commit ec4d817c authored by Jakub Kicinski's avatar Jakub Kicinski

Merge branch 'net-fix-module-autoloading'

Liao Chen says:

====================
net: fix module autoloading

This patchset aims to enable autoloading of some net modules.
By registering MDT, the kernel is allowed to automatically bind
modules to devices that match the specified compatible strings.
====================

Link: https://patch.msgid.link/20240826091858.369910-1-liaochen4@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents d76867ef 7d2bd8ac
...@@ -2022,6 +2022,7 @@ static const struct of_device_id ag71xx_match[] = { ...@@ -2022,6 +2022,7 @@ static const struct of_device_id ag71xx_match[] = {
{ .compatible = "qca,qca9560-eth", .data = &ag71xx_dcfg_qca9550 }, { .compatible = "qca,qca9560-eth", .data = &ag71xx_dcfg_qca9550 },
{} {}
}; };
MODULE_DEVICE_TABLE(of, ag71xx_match);
static struct platform_driver ag71xx_driver = { static struct platform_driver ag71xx_driver = {
.probe = ag71xx_probe, .probe = ag71xx_probe,
......
...@@ -1235,6 +1235,7 @@ static const struct of_device_id dm9051_match_table[] = { ...@@ -1235,6 +1235,7 @@ static const struct of_device_id dm9051_match_table[] = {
{ .compatible = "davicom,dm9051" }, { .compatible = "davicom,dm9051" },
{} {}
}; };
MODULE_DEVICE_TABLE(of, dm9051_match_table);
static const struct spi_device_id dm9051_id_table[] = { static const struct spi_device_id dm9051_id_table[] = {
{ "dm9051", 0 }, { "dm9051", 0 },
......
...@@ -2775,6 +2775,7 @@ static const struct of_device_id of_airoha_match[] = { ...@@ -2775,6 +2775,7 @@ static const struct of_device_id of_airoha_match[] = {
{ .compatible = "airoha,en7581-eth" }, { .compatible = "airoha,en7581-eth" },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(of, of_airoha_match);
static struct platform_driver airoha_driver = { static struct platform_driver airoha_driver = {
.probe = airoha_probe, .probe = airoha_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment