summaryrefslogtreecommitdiffstats
path: root/core/pci.c
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-06-10 15:03:41 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-14 16:00:16 +1000
commit0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90 (patch)
tree249a264686be313a00fbbc345722f47d1db025ec /core/pci.c
parentcc406eb92d69690e26c3c5f52f48060c6c8c0b43 (diff)
downloadblackbird-skiboot-0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90.tar.gz
blackbird-skiboot-0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90.zip
core/pci: Return value for struct phb_ops::device_init
This adds @data argument and "int" return value for struct phb_ops:: device_init() so that it can be called in pci_walk_dev() directly to reinitialize the PCI devices behind the specified slot in subsequent patches. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/pci.c')
-rw-r--r--core/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pci.c b/core/pci.c
index 05d2fa73..d869ec2d 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -262,7 +262,7 @@ static struct pci_device *pci_scan_one(struct phb *phb, struct pci_device *paren
* Call PHB hook
*/
if (phb->ops->device_init)
- phb->ops->device_init(phb, pd);
+ phb->ops->device_init(phb, pd, NULL);
return pd;
fail:
OpenPOWER on IntegriCloud