diff options
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 |