PCI: eswin: Publish the platform driver OF alias
PATCH v2 1/1 PCI: eswin: Publish the platform driver OF alias
PCIE_ESWIN is tristate and eswin_pcie_driver uses an OF match table, but the table is not exported. The resulting module lacks the OF alias needed for automatic loading on an ESWIN PCIe host controller.
Export the OF table. Keep builtin_platform_driver() and the intentional absence of an unregister path unchanged; module alias publication does not require making this interrupt-controller driver unloadable.
The issue was found by our static-analysis tool.
---
Changes since v1:
https://lore.kernel.org/all/[email protected]/
Use the full author name. Preserve the registration model explained by Manivannan; do not add a remove path.
drivers/pci/controller/dwc/pcie-eswin.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/controller/dwc/pcie-eswin.c +1 -0
@@ -388,6 +388,7 @@ static const struct of_device_id eswin_pcie_of_match[] = { { .compatible = "eswin,eic7700-pcie", .data = &eswin_eic7700_data }, {} }; +MODULE_DEVICE_TABLE (of, eswin_pcie_of_match);static struct platform_driver eswin_pcie_driver = { .probe = eswin_pcie_probe,
base-commit: 518e5b794c06c0f0eb40df3e202274a66202c137
Signature · 1 line
2.50.1 (Apple Git-155)
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 8 lines
PCIE_ESWINis tristate andeswin_pcie_driveruses an OF match table, but the table is not exported. The resulting module lacks the OF alias needed for automatic loading on an ESWIN PCIe host controller.Export the OF table. Keep
builtin_platform_driver()and the intentional absence of an unregister path unchanged; module alias publication does not require making this interrupt-controller driver unloadable.
Quoted 5 lines
The issue was found by our static-analysis tool.
Fixes b593c26d081a ("PCI: eswin: Add ESWIN PCIe Root Complex driver")Assisted-by gpt 5Signed-off-by Pengpeng Hou <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 1 line · Pengpeng Hou
PCI: eswin: Publish the platform driver OF alias
Applied, thanks!
[1/1] PCI: eswin: Publish the platform driver OF alias
commit: 8ef6cb2591df03affcd9fa683aaf05da3bf26f49
Best regards,
Signature · 1 line
மணிவண்ணன் சதாசிவம்