diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2016-04-26 11:56:54 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-05-03 17:55:45 +1000 |
commit | 61bc50ac6d261353b8c3ff9605fb976f83c24aad (patch) | |
tree | 03971873e1d0bc6ab97b783794dcf3f707fb07cb /include/pci.h | |
parent | 0d4d3355e00e5beee08123d6db6e08aa3d9e47c8 (diff) | |
download | skiboot-61bc50ac6d261353b8c3ff9605fb976f83c24aad.zip skiboot-61bc50ac6d261353b8c3ff9605fb976f83c24aad.tar.gz skiboot-61bc50ac6d261353b8c3ff9605fb976f83c24aad.tar.bz2 |
PCI: Remove pci_put_phb()
pci_{get,put}_phb() were introduced to increase/decrease refcount or
similar thing to PHB. They should show up in pairs and some code is
obvious breaking the semantics, but the logic is good as pci_put_phb()
does nothing.
As we do not maintain refcount for PHB and we should not have PHB
unplugging in near future, it simply drops pci_put_phb(). No functional
changes introduced.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r-- | include/pci.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h index 3541374..aec4808 100644 --- a/include/pci.h +++ b/include/pci.h @@ -540,7 +540,6 @@ extern struct pci_cfg_reg_filter *pci_add_cfg_reg_filter(struct pci_device *pd, extern int64_t pci_register_phb(struct phb *phb, int opal_id); extern int64_t pci_unregister_phb(struct phb *phb); extern struct phb *pci_get_phb(uint64_t phb_id); -static inline void pci_put_phb(struct phb *phb __unused) { } static inline struct phb *__pci_next_phb_idx(uint64_t *phb_id) { struct phb *phb = NULL; |