Skip to contentSkip to conversation

net: mdio: Add missing MODULE_DEVICE_TABLE

PATCH In review Zou Wei 3 participants 3 messages May 12, 2021

Subsystems (4)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 net: mdio: Add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/net/mdio/mdio-aspeed.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/mdio/mdio-aspeed.c +1 -0
index cad8205..bb9933f 100644
@@ -141,6 +141,7 @@ static const struct of_device_id aspeed_mdio_of_match[] = {
 	{ .compatible = "aspeed,ast2600-mdio", },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, aspeed_mdio_of_match);
 
 static struct platform_driver aspeed_mdio_driver = {
 	.driver = {
Signature · 1 line
2.6.2
maintainer
#2 lore raw
In reply to Zou Wei
Quoted 3 lines · Zou Wei

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

Please make the subject line more specific. There are a number of MDIO bus drivers in the kernel. Adding "aspeed:" would make it clear which one you are changing.

Andrew