diff mbox series

[-next] PCI: tegra: Add missing MODULE_DEVICE_TABLE

Message ID 1620792422-16535-1-git-send-email-zou_wei@huawei.com (mailing list archive)
State Accepted
Delegated to: Lorenzo Pieralisi
Headers show
Series [-next] PCI: tegra: Add missing MODULE_DEVICE_TABLE | expand

Commit Message

Zou Wei May 12, 2021, 4:07 a.m. UTC
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(+)

Comments

Vidya Sagar May 13, 2021, 8:58 a.m. UTC | #1
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
>
Thierry Reding June 1, 2021, 5:04 p.m. UTC | #2
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>
Lorenzo Pieralisi June 3, 2021, 4:08 p.m. UTC | #3
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
diff mbox series

Patch

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)
 {