PCI: layerscape: Convert to builtin_platform_driver()

fw_devlink will defer the probe until all suppliers are ready. We can't
use builtin_platform_driver_probe() because it doesn't retry after probe
deferral. Convert it to builtin_platform_driver().

Link: https://lore.kernel.org/r/20210120105246.23218-1-michael@walle.cc
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
Michael Walle 2021-01-20 11:52:46 +01:00 committed by Bjorn Helgaas
parent 5bfb792f21
commit 7007b745a5

View File

@ -232,7 +232,7 @@ static const struct of_device_id ls_pcie_of_match[] = {
{ }, { },
}; };
static int __init ls_pcie_probe(struct platform_device *pdev) static int ls_pcie_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct dw_pcie *pci; struct dw_pcie *pci;
@ -271,10 +271,11 @@ static int __init ls_pcie_probe(struct platform_device *pdev)
} }
static struct platform_driver ls_pcie_driver = { static struct platform_driver ls_pcie_driver = {
.probe = ls_pcie_probe,
.driver = { .driver = {
.name = "layerscape-pcie", .name = "layerscape-pcie",
.of_match_table = ls_pcie_of_match, .of_match_table = ls_pcie_of_match,
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
}; };
builtin_platform_driver_probe(ls_pcie_driver, ls_pcie_probe); builtin_platform_driver(ls_pcie_driver);