From: Sean Wang Date: Wed, 14 Sep 2016 13:29:34 +0000 (+0800) Subject: net: ethernet: mediatek: fix module loading automatically based on MODULE_DEVICE_TABLE X-Git-Tag: v4.14-rc1~2460^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7077dc415b113ac17a6696c432bad2d66574e4fb;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- 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,