Skip to contentSkip to conversation

PCI: mvebu: Enable module autoloading

PATCH Applied Liao Chen 3 participants 3 messages Sep 3, 2024 – Jan 15, 2025

Subsystems (3)
lore
Share & tools
lore

Liao Chen

author
#0 lore raw

PATCH 1/1 PCI: mvebu: Enable module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

---
 drivers/pci/controller/pci-mvebu.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/pci-mvebu.c +1 -0
index 29fe09c99e7d..bf193f8c258d 100644
@@ -1715,6 +1715,7 @@ static const struct of_device_id mvebu_pcie_of_match_table[] = {
 	{ .compatible = "marvell,kirkwood-pcie", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);
 
 static const struct dev_pm_ops mvebu_pcie_pm_ops = {
 	NOIRQ_SYSTEM_SLEEP_PM_OPS(mvebu_pcie_suspend, mvebu_pcie_resume)
Signature · 1 line
2.34.1
#2 lore raw
In reply to Liao Chen

Hello,

Quoted 2 lines

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

Applied to controller/mvebu for v6.14, thank you!

Krzysztof