Commit 07af604f authored by Sean Wang's avatar Sean Wang Committed by Greg Kroah-Hartman

net: dsa: mt7530: fix module autoloading for OF platform drivers

[ Upstream commit 3c82b372 ]

It's required to create a modules.alias via MODULE_DEVICE_TABLE helper
for the OF platform driver. Otherwise, module autoloading cannot work.
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 77c18f7e
...@@ -1122,6 +1122,7 @@ static const struct of_device_id mt7530_of_match[] = { ...@@ -1122,6 +1122,7 @@ static const struct of_device_id mt7530_of_match[] = {
{ .compatible = "mediatek,mt7530" }, { .compatible = "mediatek,mt7530" },
{ /* sentinel */ }, { /* sentinel */ },
}; };
MODULE_DEVICE_TABLE(of, mt7530_of_match);
static struct mdio_driver mt7530_mdio_driver = { static struct mdio_driver mt7530_mdio_driver = {
.probe = mt7530_probe, .probe = mt7530_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