diff options
| author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-07-01 15:06:37 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-01 15:29:44 -0400 |
| commit | d80d02173360562625c10a526132fb87be4de2a4 (patch) | |
| tree | 632585b71c0c5fc7ba3a19de2fca991cc9fe1afe | |
| parent | 10c86be57724adf44c266300964182fd2966d108 (diff) | |
pci.h stubs (for EDD build error)
Provide stubs for more PCI bus/slot functions when CONFIG_PCI=n.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Matt Domsch <Matt_Domsch@dell.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | include/linux/pci.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index fbf3766dac1e..086a0e5a6318 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -748,6 +748,17 @@ static inline void pci_release_regions(struct pci_dev *dev) { } | |||
| 748 | static inline void pci_block_user_cfg_access(struct pci_dev *dev) { } | 748 | static inline void pci_block_user_cfg_access(struct pci_dev *dev) { } |
| 749 | static inline void pci_unblock_user_cfg_access(struct pci_dev *dev) { } | 749 | static inline void pci_unblock_user_cfg_access(struct pci_dev *dev) { } |
| 750 | 750 | ||
| 751 | static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from) | ||
| 752 | { return NULL; } | ||
| 753 | |||
| 754 | static inline struct pci_dev *pci_get_slot(struct pci_bus *bus, | ||
| 755 | unsigned int devfn) | ||
| 756 | { return NULL; } | ||
| 757 | |||
| 758 | static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, | ||
| 759 | unsigned int devfn) | ||
| 760 | { return NULL; } | ||
| 761 | |||
| 751 | #endif /* CONFIG_PCI */ | 762 | #endif /* CONFIG_PCI */ |
| 752 | 763 | ||
| 753 | /* Include architecture-dependent settings and functions */ | 764 | /* Include architecture-dependent settings and functions */ |
