diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index e17cd49d6244..0bf6d254426b 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -19,7 +19,6 @@ | |||
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 | ||
23 | 22 | ||
24 | /** | 23 | /** |
25 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children | 24 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children |
@@ -34,7 +33,7 @@ pci_bus_max_busnr(struct pci_bus* bus) | |||
34 | struct list_head *tmp; | 33 | struct list_head *tmp; |
35 | unsigned char max, n; | 34 | unsigned char max, n; |
36 | 35 | ||
37 | max = bus->number; | 36 | max = bus->subordinate; |
38 | list_for_each(tmp, &bus->children) { | 37 | list_for_each(tmp, &bus->children) { |
39 | n = pci_bus_max_busnr(pci_bus_b(tmp)); | 38 | n = pci_bus_max_busnr(pci_bus_b(tmp)); |
40 | if(n > max) | 39 | if(n > max) |
@@ -42,7 +41,9 @@ pci_bus_max_busnr(struct pci_bus* bus) | |||
42 | } | 41 | } |
43 | return max; | 42 | return max; |
44 | } | 43 | } |
44 | EXPORT_SYMBOL_GPL(pci_bus_max_busnr); | ||
45 | 45 | ||
46 | #if 0 | ||
46 | /** | 47 | /** |
47 | * pci_max_busnr - returns maximum PCI bus number | 48 | * pci_max_busnr - returns maximum PCI bus number |
48 | * | 49 | * |