Skip to content

Commit cd5ffaf

Browse files
Marc Zyngierbjorn-helgaas
authored andcommitted
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 <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3cc8f62 commit cd5ffaf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pci/controller/pci-xgene-msi.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,4 @@ static struct platform_driver xgene_msi_driver = {
429429
.probe = xgene_msi_probe,
430430
.remove = xgene_msi_remove,
431431
};
432-
433-
static int __init xgene_pcie_msi_init(void)
434-
{
435-
return platform_driver_register(&xgene_msi_driver);
436-
}
437-
subsys_initcall(xgene_pcie_msi_init);
432+
builtin_platform_driver(xgene_msi_driver);

0 commit comments

Comments
 (0)