projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bfb792
)
PCI: layerscape: Convert to builtin_platform_driver()
author
Michael Walle
<michael@walle.cc>
Wed, 20 Jan 2021 10:52:46 +0000
(11:52 +0100)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 24 Feb 2021 17:08:48 +0000
(11:08 -0600)
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>
drivers/pci/controller/dwc/pci-layerscape.c
patch
|
blob
|
history
diff --git
a/drivers/pci/controller/dwc/pci-layerscape.c
b/drivers/pci/controller/dwc/pci-layerscape.c
index
44ad34c
..
5b9c625
100644
(file)
--- a/
drivers/pci/controller/dwc/pci-layerscape.c
+++ b/
drivers/pci/controller/dwc/pci-layerscape.c
@@
-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 dw_pcie *pci;
@@
-271,10
+271,11
@@
static int __init ls_pcie_probe(struct platform_device *pdev)
}
static struct platform_driver ls_pcie_driver = {
+ .probe = ls_pcie_probe,
.driver = {
.name = "layerscape-pcie",
.of_match_table = ls_pcie_of_match,
.suppress_bind_attrs = true,
},
};
-builtin_platform_driver
_probe(ls_pcie_driver, ls_pcie_probe
);
+builtin_platform_driver
(ls_pcie_driver
);