]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit3c82b372a9f44aa224b8d5106ff6f1ad516fa8a8
tree234f5d4775eb3adf915f7420bd9e58f7ce8d3793
parent1c82c9e1f2ba9f32ac41012b91abddd639010f7a
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