PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE
PATCH 1/1 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.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zou Wei <[email protected]>
--- drivers/pci/controller/pcie-mediatek-gen3.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/controller/pcie-mediatek-gen3.c +1 -0
@@ -1012,6 +1012,7 @@ static const struct of_device_id mtk_pcie_of_match[] = { { .compatible = "mediatek,mt8192-pcie" }, {}, }; +MODULE_DEVICE_TABLE (of, mtk_pcie_of_match);static struct platform_driver mtk_pcie_driver = { .probe = mtk_pcie_probe,
Signature · 1 line
2.6.2
Hi Zou,
Quoted 3 lines
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.
[...]
Thank you!
Reviewed-by Krzysztof Wilczyński <[email protected]>
Krzysztof
Lorenzo Pieralisi
AppliedQuoted 3 lines · Zou Wei
This patch adds missing
MODULE_DEVICE_TABLEdefinition which generates correct modalias for automatic loading of this driver when it is built as an external module.
Applied to pci/mediatek-gen3, thanks!
[1/1] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE
https://git.kernel.org/lpieralisi/pci/c/3a2e476dc5
Thanks,
Lorenzo