PCI/AER: Move internal declarations to drivers/pci/pci.h

Since pci_aer_init() and pci_no_aer() are used only internally, move their
declarations to the PCI internal header file.  Also, no one cares about
return value of pci_aer_init(), so make it void.

Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tento commit je obsažen v:
Rajat Jain
2018-06-21 16:48:26 -07:00
odevzdal Bjorn Helgaas
rodič bd237801fe
revize 60ed982a4e
3 změnil soubory, kde provedl 10 přidání a 6 odebrání

Zobrazit soubor

@@ -382,10 +382,10 @@ int pci_cleanup_aer_error_status_regs(struct pci_dev *dev)
return 0;
}
int pci_aer_init(struct pci_dev *dev)
void pci_aer_init(struct pci_dev *dev)
{
dev->aer_cap = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);
return pci_cleanup_aer_error_status_regs(dev);
pci_cleanup_aer_error_status_regs(dev);
}
#define AER_AGENT_RECEIVER 0