[PATCH v2 11/13] PCI: xgene-msi: Probe as a standard platform driver

Marc Zyngier posted 13 patches 3 months ago
[PATCH v2 11/13] PCI: xgene-msi: Probe as a standard platform driver
Posted by Marc Zyngier 3 months ago
Now that we have made the dependedncy between the PCI driver and
the MSI driver explicit, there is no need to use subsys_initcall()
as a probing hook, and we can rely on builtin_platform_driver()
instead.

Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 drivers/pci/controller/pci-xgene-msi.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/pci/controller/pci-xgene-msi.c b/drivers/pci/controller/pci-xgene-msi.c
index a190c25c8df52..243c7721c8799 100644
--- a/drivers/pci/controller/pci-xgene-msi.c
+++ b/drivers/pci/controller/pci-xgene-msi.c
@@ -429,9 +429,4 @@ static struct platform_driver xgene_msi_driver = {
 	.probe = xgene_msi_probe,
 	.remove = xgene_msi_remove,
 };
-
-static int __init xgene_pcie_msi_init(void)
-{
-	return platform_driver_register(&xgene_msi_driver);
-}
-subsys_initcall(xgene_pcie_msi_init);
+builtin_platform_driver(xgene_msi_driver);
-- 
2.39.2
Re: [PATCH v2 11/13] PCI: xgene-msi: Probe as a standard platform driver
Posted by Markus Elfring 2 months, 3 weeks ago
> Now that we have made the dependedncy between the PCI driver and
…

                            dependency?

Regards,
Markus
Re: [PATCH v2 11/13] PCI: xgene-msi: Probe as a standard platform driver
Posted by Lorenzo Pieralisi 2 months, 3 weeks ago
On Thu, Jul 17, 2025 at 01:45:12PM +0200, Markus Elfring wrote:
> > Now that we have made the dependedncy between the PCI driver and
> …
> 
>                             dependency?

https://git.kernel.org/pci/pci/c/a435be2c3318

Thanks,
Lorenzo