diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index a7fe4bbd7ff1..72698d89e767 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -674,6 +674,11 @@ int __must_check pci_reenable_device(struct pci_dev *); | |||
| 674 | int __must_check pcim_enable_device(struct pci_dev *pdev); | 674 | int __must_check pcim_enable_device(struct pci_dev *pdev); |
| 675 | void pcim_pin_device(struct pci_dev *pdev); | 675 | void pcim_pin_device(struct pci_dev *pdev); |
| 676 | 676 | ||
| 677 | static inline int pci_is_enabled(struct pci_dev *pdev) | ||
| 678 | { | ||
| 679 | return (atomic_read(&pdev->enable_cnt) > 0); | ||
| 680 | } | ||
| 681 | |||
| 677 | static inline int pci_is_managed(struct pci_dev *pdev) | 682 | static inline int pci_is_managed(struct pci_dev *pdev) |
| 678 | { | 683 | { |
| 679 | return pdev->is_managed; | 684 | return pdev->is_managed; |
