diff options
author | 2025-07-08 18:34:02 +0100 | |
---|---|---|
committer | 2025-07-22 15:33:16 -0500 | |
commit | cd5ffaf2b1a85f507e668b773575baf77aa6a6d3 (patch) | |
tree | ff8257d54ae603594692808989548619a628e3b1 | |
parent | PCI: xgene-msi: Resend an MSI racing with itself on a different CPU (diff) | |
download | wireguard-linux-cd5ffaf2b1a85f507e668b773575baf77aa6a6d3.tar.xz wireguard-linux-cd5ffaf2b1a85f507e668b773575baf77aa6a6d3.zip |
PCI: xgene-msi: Probe as a standard platform driver
Now that we have made the dependency 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>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20250708173404.1278635-12-maz@kernel.org
-rw-r--r-- | drivers/pci/controller/pci-xgene-msi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/pci/controller/pci-xgene-msi.c b/drivers/pci/controller/pci-xgene-msi.c index 0ae8f29025bf..988e2f1f2425 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); |