linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE
@ 2021-05-11  7:11 Zou Wei
  2021-05-14 12:59 ` Krzysztof Wilczyński
  2021-06-22 10:18 ` Lorenzo Pieralisi
  0 siblings, 2 replies; 4+ messages in thread
From: Zou Wei @ 2021-05-11  7:11 UTC (permalink / raw)
  To: ryder.lee, jianjun.wang, lorenzo.pieralisi, robh, bhelgaas, matthias.bgg
  Cc: linux-pci, linux-mediatek, linux-kernel, linux-arm-kernel, Zou Wei

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 <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 drivers/pci/controller/pcie-mediatek-gen3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c
index 3c5b9771..f3aeb8d 100644
--- a/drivers/pci/controller/pcie-mediatek-gen3.c
+++ b/drivers/pci/controller/pcie-mediatek-gen3.c
@@ -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,
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE
  2021-05-11  7:11 [PATCH -next] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE Zou Wei
@ 2021-05-14 12:59 ` Krzysztof Wilczyński
  2021-06-22 10:18 ` Lorenzo Pieralisi
  1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Wilczyński @ 2021-05-14 12:59 UTC (permalink / raw)
  To: Zou Wei
  Cc: ryder.lee, jianjun.wang, lorenzo.pieralisi, robh, bhelgaas,
	matthias.bgg, linux-pci, linux-mediatek, linux-kernel,
	linux-arm-kernel

Hi Zou,

> 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.
[...]

Thank you!

Reviewed-by: Krzysztof Wilczyński <kw@linux.com>

Krzysztof

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE
  2021-05-11  7:11 [PATCH -next] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE Zou Wei
  2021-05-14 12:59 ` Krzysztof Wilczyński
@ 2021-06-22 10:18 ` Lorenzo Pieralisi
  1 sibling, 0 replies; 4+ messages in thread
From: Lorenzo Pieralisi @ 2021-06-22 10:18 UTC (permalink / raw)
  To: bhelgaas, matthias.bgg, robh, ryder.lee, Zou Wei, jianjun.wang
  Cc: Lorenzo Pieralisi, linux-kernel, linux-pci, linux-mediatek,
	linux-arm-kernel

On Tue, 11 May 2021 15:11:31 +0800, Zou Wei wrote:
> 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.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH -next] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE
@ 2021-05-04  7:28 Tang Yizhou
  0 siblings, 0 replies; 4+ messages in thread
From: Tang Yizhou @ 2021-05-04  7:28 UTC (permalink / raw)
  To: jianjun.wang, lorenzo.pieralisi, ryder.lee
  Cc: linux-pci, linux-mediatek, linux-kernel, tangyizhou, Hulk Robot

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 <hulkci@huawei.com>
Signed-off-by: Tang Yizhou <tangyizhou@huawei.com>
---
 drivers/pci/controller/pcie-mediatek-gen3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/controller/pcie-mediatek-gen3.c b/drivers/pci/controller/pcie-mediatek-gen3.c
index 3c5b97716d40..f3aeb8d4eaca 100644
--- a/drivers/pci/controller/pcie-mediatek-gen3.c
+++ b/drivers/pci/controller/pcie-mediatek-gen3.c
@@ -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,
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-22 10:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11  7:11 [PATCH -next] PCI: mediatek-gen3: Add missing MODULE_DEVICE_TABLE Zou Wei
2021-05-14 12:59 ` Krzysztof Wilczyński
2021-06-22 10:18 ` Lorenzo Pieralisi
  -- strict thread matches above, loose matches on Subject: below --
2021-05-04  7:28 Tang Yizhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).