mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 00:51:44 +00:00
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>
This commit is contained in:
parent
1c82c9e1f2
commit
3c82b372a9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user