summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorQiheng Lin <linqiheng@huawei.com>2021-03-31 16:59:38 +0800
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2021-04-13 11:47:34 +0100
commit87db343f809d611405c45cbb691657e7df5c047d (patch)
tree91e5e6a327d02d9277a0b1beda2f139b631ba4bc /drivers/pci
parent31ec9c2746467a372b009940ce7b722055daaf6a (diff)
PCI: mediatek: Add missing MODULE_DEVICE_TABLE
This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Link: https://lore.kernel.org/r/20210331085938.3115-1-linqiheng@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Qiheng Lin <linqiheng@huawei.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/controller/pcie-mediatek.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c
index 8af04848e0f9..ddbd2f8b3226 100644
--- a/drivers/pci/controller/pcie-mediatek.c
+++ b/drivers/pci/controller/pcie-mediatek.c
@@ -1210,6 +1210,7 @@ static const struct of_device_id mtk_pcie_ids[] = {
{ .compatible = "mediatek,mt7629-pcie", .data = &mtk_pcie_soc_mt7629 },
{},
};
+MODULE_DEVICE_TABLE(of, mtk_pcie_ids);
static struct platform_driver mtk_pcie_driver = {
.probe = mtk_pcie_probe,