]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: fix module autoloading for OF platform drivers
authorSean Wang <sean.wang@mediatek.com>
Mon, 26 Mar 2018 10:07:10 +0000 (18:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 17:09:42 +0000 (13:09 -0400)
commit79b636c0cf6a623da4983fa0e0d90b23a0640d2b
tree234f5d4775eb3adf915f7420bd9e58f7ce8d3793
parent9eb3b69e3cc160820b3593630bce27d7075643eb
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>
drivers/net/dsa/mt7530.c