Message ID | 1473859774-6327-1-git-send-email-sean.wang@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
From: <sean.wang@mediatek.com> Date: Wed, 14 Sep 2016 21:29:34 +0800 > From: Sean Wang <sean.wang@mediatek.com> > > 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> Applied.
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index a6a9a2f..b44ff3c 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -2053,6 +2053,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,