summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2016-09-14 21:29:34 +0800
committerDavid S. Miller <davem@davemloft.net>2016-09-16 04:19:54 -0400
commit7077dc415b113ac17a6696c432bad2d66574e4fb (patch)
treea4d8ddf23322465a846f055a1784480577418625 /drivers
parent6777ae8083f132baa4270f40e31776274f989a07 (diff)
downloadlinux-stable-7077dc415b113ac17a6696c432bad2d66574e4fb.tar.gz
linux-stable-7077dc415b113ac17a6696c432bad2d66574e4fb.tar.bz2
linux-stable-7077dc415b113ac17a6696c432bad2d66574e4fb.zip
net: ethernet: mediatek: fix module loading automatically based on MODULE_DEVICE_TABLE
The device table is required to load modules based on modaliases. After adding MODULE_DEVICE_TABLE, below entries for example will be added to modules.alias: alias of:N*T*Cmediatek,mt7623-ethC* mtk_eth_soc Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mediatek/mtk_eth_soc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index d9199151a83e..3743af8f1ded 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -1923,6 +1923,7 @@ const struct of_device_id of_mtk_match[] = {
{ .compatible = "mediatek,mt7623-eth" },
{},
};
+MODULE_DEVICE_TABLE(of, of_mtk_match);
static struct platform_driver mtk_driver = {
.probe = mtk_probe,