summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2018-03-26 13:07:10 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-26 20:09:42 +0300
commit3c82b372a9f44aa224b8d5106ff6f1ad516fa8a8 (patch)
tree234f5d4775eb3adf915f7420bd9e58f7ce8d3793 /drivers
parent1c82c9e1f2ba9f32ac41012b91abddd639010f7a (diff)
downloadlinux-3c82b372a9f44aa224b8d5106ff6f1ad516fa8a8.tar.xz
net: dsa: mt7530: fix module autoloading for OF platform drivers
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: Sean Wang <sean.wang@mediatek.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/dsa/mt7530.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index d31246cbefd1..4e53c5ce23ff 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -1409,6 +1409,7 @@ static const struct of_device_id mt7530_of_match[] = {
{ .compatible = "mediatek,mt7530" },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, mt7530_of_match);
static struct mdio_driver mt7530_mdio_driver = {
.probe = mt7530_probe,