All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE
@ 2021-05-12  4:07 Zou Wei
  2021-05-13  8:58 ` Vidya Sagar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zou Wei @ 2021-05-12  4:07 UTC (permalink / raw)
  To: thierry.reding, lorenzo.pieralisi, robh, bhelgaas, jonathanh
  Cc: linux-tegra, linux-pci, linux-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/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


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

* Re: [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE
  2021-05-12  4:07 [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE Zou Wei
@ 2021-05-13  8:58 ` Vidya Sagar
  2021-06-01 17:04 ` Thierry Reding
  2021-06-03 16:08 ` Lorenzo Pieralisi
  2 siblings, 0 replies; 4+ messages in thread
From: Vidya Sagar @ 2021-05-13  8:58 UTC (permalink / raw)
  To: Zou Wei, thierry.reding, lorenzo.pieralisi, robh, bhelgaas, jonathanh
  Cc: linux-tegra, linux-pci, linux-kernel

Thanks for the patch.

Reviewed-by: Vidya Sagar <vidyas@nvidia.com>

On 5/12/2021 9:37 AM, Zou Wei wrote:
> 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 <hulkci@huawei.com>
> Signed-off-by: Zou Wei <zou_wei@huawei.com>
> ---
>   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
> 

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

* Re: [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE
  2021-05-12  4:07 [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE Zou Wei
  2021-05-13  8:58 ` Vidya Sagar
@ 2021-06-01 17:04 ` Thierry Reding
  2021-06-03 16:08 ` Lorenzo Pieralisi
  2 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2021-06-01 17:04 UTC (permalink / raw)
  To: Zou Wei
  Cc: lorenzo.pieralisi, robh, bhelgaas, jonathanh, linux-tegra,
	linux-pci, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

On Wed, May 12, 2021 at 12:07:02PM +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.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Zou Wei <zou_wei@huawei.com>
> ---
>  drivers/pci/controller/pci-tegra.c | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE
  2021-05-12  4:07 [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE Zou Wei
  2021-05-13  8:58 ` Vidya Sagar
  2021-06-01 17:04 ` Thierry Reding
@ 2021-06-03 16:08 ` Lorenzo Pieralisi
  2 siblings, 0 replies; 4+ messages in thread
From: Lorenzo Pieralisi @ 2021-06-03 16:08 UTC (permalink / raw)
  To: thierry.reding, jonathanh, robh, bhelgaas, Zou Wei
  Cc: Lorenzo Pieralisi, linux-pci, linux-tegra, linux-kernel

On Wed, 12 May 2021 12:07:02 +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/tegra, thanks!

[1/1] PCI: tegra: Add missing MODULE_DEVICE_TABLE
      https://git.kernel.org/lpieralisi/pci/c/7ebe6b79d7

Thanks,
Lorenzo

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

end of thread, other threads:[~2021-06-03 16:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12  4:07 [PATCH -next] PCI: tegra: Add missing MODULE_DEVICE_TABLE Zou Wei
2021-05-13  8:58 ` Vidya Sagar
2021-06-01 17:04 ` Thierry Reding
2021-06-03 16:08 ` Lorenzo Pieralisi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.