Skip to contentSkip to conversation

net: dsa: mv88e6060: Publish the OF module alias

PATCH In review hpp.iscas 3 participants 3 messages Sep 5 – Sep 8

Subsystems (3)
lore
Share & tools
lore

hpp.iscas

author
#0 lore raw

PATCH 1/1 net: dsa: mv88e6060: Publish the OF module alias

The MV88E6060 MDIO driver uses mv88e6060_of_match for OF matching. The MDIO bus emits an OF modalias for such devices, but the module only provides the legacy platform:mv88e6060 alias.

Publish the OF match table and retain the legacy alias.

Fixes 277617603c02 ("net: dsa: mv88e6060: Support probing as an mdio device")
---
 drivers/net/dsa/mv88e6060.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/dsa/mv88e6060.c +1 -0
index 9c8ac14..8373ccd 100644
@@ -364,6 +364,7 @@ static const struct of_device_id mv88e6060_of_match[] = {
 	},
 	{ /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, mv88e6060_of_match);
 
 static struct mdio_driver mv88e6060_driver = {
 	.probe	= mv88e6060_probe,
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · hpp.iscas

The MV88E6060 MDIO driver uses mv88e6060_of_match for OF matching. The MDIO bus emits an OF modalias for such devices, but the module only provides the legacy platform:mv88e6060 alias.

Publish the OF match table and retain the legacy alias.

Fixes 277617603c02 ("net: dsa: mv88e6060: Support probing as an mdio device")

Fair enough.

Yours,
Linus Walleij