Skip to content

Commit 3a2e476

Browse files
SamuelZOULorenzo Pieralisi
authored andcommitted
PCI: mediatek-gen3: 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/[email protected] Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zou Wei <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Krzysztof Wilczyński <[email protected]>
1 parent 6efb943 commit 3a2e476

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/pcie-mediatek-gen3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ static const struct of_device_id mtk_pcie_of_match[] = {
10121012
{ .compatible = "mediatek,mt8192-pcie" },
10131013
{},
10141014
};
1015+
MODULE_DEVICE_TABLE(of, mtk_pcie_of_match);
10151016

10161017
static struct platform_driver mtk_pcie_driver = {
10171018
.probe = mtk_pcie_probe,

0 commit comments

Comments
 (0)