diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2016-06-10 15:03:41 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-14 16:00:16 +1000 |
commit | 0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90 (patch) | |
tree | 249a264686be313a00fbbc345722f47d1db025ec /core/pci.c | |
parent | cc406eb92d69690e26c3c5f52f48060c6c8c0b43 (diff) | |
download | blackbird-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |