diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8e287a828d5d..d2a633efa10a 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/dma.h> /* isa_dma_bridge_buggy */ | 19 | #include <asm/dma.h> /* isa_dma_bridge_buggy */ |
20 | #include "pci.h" | 20 | #include "pci.h" |
21 | 21 | ||
22 | #if 0 | ||
22 | 23 | ||
23 | /** | 24 | /** |
24 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children | 25 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children |
@@ -63,6 +64,8 @@ pci_max_busnr(void) | |||
63 | return max; | 64 | return max; |
64 | } | 65 | } |
65 | 66 | ||
67 | #endif /* 0 */ | ||
68 | |||
66 | static int __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap) | 69 | static int __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap) |
67 | { | 70 | { |
68 | u8 id; | 71 | u8 id; |
@@ -587,7 +590,7 @@ pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge) | |||
587 | { | 590 | { |
588 | u8 pin; | 591 | u8 pin; |
589 | 592 | ||
590 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); | 593 | pin = dev->pin; |
591 | if (!pin) | 594 | if (!pin) |
592 | return -1; | 595 | return -1; |
593 | pin--; | 596 | pin--; |
@@ -917,8 +920,6 @@ EXPORT_SYMBOL_GPL(pci_restore_bars); | |||
917 | EXPORT_SYMBOL(pci_enable_device_bars); | 920 | EXPORT_SYMBOL(pci_enable_device_bars); |
918 | EXPORT_SYMBOL(pci_enable_device); | 921 | EXPORT_SYMBOL(pci_enable_device); |
919 | EXPORT_SYMBOL(pci_disable_device); | 922 | EXPORT_SYMBOL(pci_disable_device); |
920 | EXPORT_SYMBOL(pci_max_busnr); | ||
921 | EXPORT_SYMBOL(pci_bus_max_busnr); | ||
922 | EXPORT_SYMBOL(pci_find_capability); | 923 | EXPORT_SYMBOL(pci_find_capability); |
923 | EXPORT_SYMBOL(pci_bus_find_capability); | 924 | EXPORT_SYMBOL(pci_bus_find_capability); |
924 | EXPORT_SYMBOL(pci_release_regions); | 925 | EXPORT_SYMBOL(pci_release_regions); |