summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-02-11 00:18:41 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-23 12:27:11 -0800
commit34a4876e3071ddebf3c98c99ba01c14b059a1361 (patch)
treee1450472300e41f407c5cfec49b157450d8d85d8 /include/linux/pci.h
parentf796841e49fe086176e27ed0e1f3f7a1123a4a6b (diff)
downloadop-kernel-dev-34a4876e3071ddebf3c98c99ba01c14b059a1361.zip
op-kernel-dev-34a4876e3071ddebf3c98c99ba01c14b059a1361.tar.gz
PCI: move pci_find_saved_cap out of linux/pci.h
Only one user in driver/pci/pci.c, so we don't need to put it in global pci.h Reviewed-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index f8caaab..bcaa51c 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -368,25 +368,6 @@ static inline int pci_channel_offline(struct pci_dev *pdev)
return (pdev->error_state != pci_channel_io_normal);
}
-static inline struct pci_cap_saved_state *pci_find_saved_cap(
- struct pci_dev *pci_dev, char cap)
-{
- struct pci_cap_saved_state *tmp;
- struct hlist_node *pos;
-
- hlist_for_each_entry(tmp, pos, &pci_dev->saved_cap_space, next) {
- if (tmp->cap.cap_nr == cap)
- return tmp;
- }
- return NULL;
-}
-
-static inline void pci_add_saved_cap(struct pci_dev *pci_dev,
- struct pci_cap_saved_state *new_cap)
-{
- hlist_add_head(&new_cap->next, &pci_dev->saved_cap_space);
-}
-
/*
* The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond
* to P2P or CardBus bridge windows) go in a table. Additional ones (for
OpenPOWER on IntegriCloud