Re: [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE

From
Vidya Sagar <hidden>
Date
2021-05-13 08:59:29
Also in
linux-pci, lkml
Reply to
Zou Wei, 2021-05-12
Thanks for the patch.

Reviewed-by: Vidya Sagar <redacted>

On 5/12/2021 9:37 AM, Zou Wei wrote:
quoted hunk ↗ jump to hunk
External email: Use caution opening links or attachments


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 <redacted>
Signed-off-by: Zou Wei <redacted>
---
  drivers/pci/controller/pci-tegra.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c
index 8069bd9..c979229 100644
--- a/drivers/pci/controller/pci-tegra.c
+++ b/drivers/pci/controller/pci-tegra.c
@@ -2539,6 +2539,7 @@ static const struct of_device_id tegra_pcie_of_match[] = {
         { .compatible = "nvidia,tegra20-pcie", .data = &tegra20_pcie },
         { },
  };
+MODULE_DEVICE_TABLE(of, tegra_pcie_of_match);

  static void *tegra_pcie_ports_seq_start(struct seq_file *s, loff_t *pos)
  {
--
2.6.2
Thread (4 messages) 4 messages, 4 authors, last reply 2021-06-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help