Skip to contentSkip to conversation

ARM: tegra: Add missing MODULE_DEVICE_TABLE

PATCH In review Zou Wei 2 participants 2 messages May 12, 2021 – Jun 1, 2021

Subsystems (2)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 ARM: tegra: 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.

---
 drivers/amba/tegra-ahb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/amba/tegra-ahb.c +1 -0
index 0b2c20f..a0af8ed 100644
@@ -272,6 +272,7 @@ static const struct of_device_id tegra_ahb_of_match[] = {
 	{ .compatible = "nvidia,tegra20-ahb", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, tegra_ahb_of_match);
 
 static struct platform_driver tegra_ahb_driver = {
 	.probe = tegra_ahb_probe,
Signature · 1 line
2.6.2
#1 lore raw
Quoted 9 lines · 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.

---
 drivers/amba/tegra-ahb.c | 1 +
 1 file changed, 1 insertion(+)

This driver cannot be built as an external module, so the device table doesn't make sense.

Thierry