diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 74a9f61bf057..4c7c2c4a0804 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -406,11 +406,6 @@ static inline int pci_dev_set_disconnected(struct pci_dev *dev, void *unused) return 0; } -static inline bool pci_dev_is_disconnected(const struct pci_dev *dev) -{ - return dev->error_state == pci_channel_io_perm_failure; -} - /* pci_dev priv_flags */ #define PCI_DEV_ADDED 0 #define PCI_DPC_RECOVERED 1 diff --git a/include/linux/pci.h b/include/linux/pci.h index 815d5f9c7957..56a2ed02c377 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -2235,6 +2235,11 @@ static inline struct pci_dev *pcie_find_root_port(struct pci_dev *dev) return NULL; } +static inline bool pci_dev_is_disconnected(const struct pci_dev *dev) +{ + return dev->error_state == pci_channel_io_perm_failure; +} + void pci_request_acs(void); bool pci_acs_enabled(struct pci_dev *pdev, u16 acs_flags); bool pci_acs_path_enabled(struct pci_dev *start,