From: Sean Wang Date: Mon, 26 Mar 2018 10:07:10 +0000 (+0800) Subject: net: dsa: mt7530: fix module autoloading for OF platform drivers X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3c82b372a9f44aa224b8d5106ff6f1ad516fa8a8;p=linux.git 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 Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index d31246cbefd1b..4e53c5ce23ffe 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,