diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-05-31 16:13:28 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-03 10:20:00 +1000 |
commit | 0e56e26ab02a8561d9ea0066e2d5ef21885db56e (patch) | |
tree | d23e17db4ac54a7e1015f8fd345132109546f54c /core | |
parent | e985764f5734f5e1165ddeee93a67b289a124344 (diff) | |
download | skiboot-0e56e26ab02a8561d9ea0066e2d5ef21885db56e.zip skiboot-0e56e26ab02a8561d9ea0066e2d5ef21885db56e.tar.gz skiboot-0e56e26ab02a8561d9ea0066e2d5ef21885db56e.tar.bz2 |
Remove remnants of OPAL_PCI_GET_PHB_DIAG_DATA
Never present in a public OPAL release, and only kernels prior to 3.11
would ever attempt to call it.
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/pci-opal.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/core/pci-opal.c b/core/pci-opal.c index 043d948..94afc6d 100644 --- a/core/pci-opal.c +++ b/core/pci-opal.c @@ -807,28 +807,6 @@ static int64_t opal_pci_set_power_state(uint64_t async_token, } opal_call(OPAL_PCI_SET_POWER_STATE, opal_pci_set_power_state, 3); -static int64_t opal_pci_get_phb_diag_data(uint64_t phb_id, - void *diag_buffer, - uint64_t diag_buffer_len) -{ - struct phb *phb = pci_get_phb(phb_id); - int64_t rc; - - if (!opal_addr_valid(diag_buffer)) - return OPAL_PARAMETER; - - if (!phb) - return OPAL_PARAMETER; - if (!phb->ops->get_diag_data) - return OPAL_UNSUPPORTED; - phb_lock(phb); - rc = phb->ops->get_diag_data(phb, diag_buffer, diag_buffer_len); - phb_unlock(phb); - - return rc; -} -opal_call(OPAL_PCI_GET_PHB_DIAG_DATA, opal_pci_get_phb_diag_data, 3); - static int64_t opal_pci_get_phb_diag_data2(uint64_t phb_id, void *diag_buffer, uint64_t diag_buffer_len) |