diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-02-11 03:18:41 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-02-23 15:27:11 -0500 |
commit | 34a4876e3071ddebf3c98c99ba01c14b059a1361 (patch) | |
tree | e1450472300e41f407c5cfec49b157450d8d85d8 /include/linux/pci.h | |
parent | f796841e49fe086176e27ed0e1f3f7a1123a4a6b (diff) |
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.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index f8caaab4b3fc..bcaa51ca7858 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) | |||
368 | return (pdev->error_state != pci_channel_io_normal); | 368 | return (pdev->error_state != pci_channel_io_normal); |
369 | } | 369 | } |
370 | 370 | ||
371 | static inline struct pci_cap_saved_state *pci_find_saved_cap( | ||
372 | struct pci_dev *pci_dev, char cap) | ||
373 | { | ||
374 | struct pci_cap_saved_state *tmp; | ||
375 | struct hlist_node *pos; | ||
376 | |||
377 | hlist_for_each_entry(tmp, pos, &pci_dev->saved_cap_space, next) { | ||
378 | if (tmp->cap.cap_nr == cap) | ||
379 | return tmp; | ||
380 | } | ||
381 | return NULL; | ||
382 | } | ||
383 | |||
384 | static inline void pci_add_saved_cap(struct pci_dev *pci_dev, | ||
385 | struct pci_cap_saved_state *new_cap) | ||
386 | { | ||
387 | hlist_add_head(&new_cap->next, &pci_dev->saved_cap_space); | ||
388 | } | ||
389 | |||
390 | /* | 371 | /* |
391 | * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond | 372 | * The first PCI_BRIDGE_RESOURCE_NUM PCI bus resources (those that correspond |
392 | * to P2P or CardBus bridge windows) go in a table. Additional ones (for | 373 | * to P2P or CardBus bridge windows) go in a table. Additional ones (for |