From e018fc29fcc4c96a2154cc4c9ee81fbe34e3aa24 Mon Sep 17 00:00:00 2001 From: Kristen Accardi Date: Tue, 17 Jan 2006 16:56:56 -0800 Subject: [PATCH] --- yaml --- r: 23179 b: refs/heads/master c: b82db5cedf78bfeb4a1c8a28ae284dc671d26eb3 h: refs/heads/master i: 23177: 5f6b0fa6010faeefd030ac367e1fb837538d81ae 23175: ce7469aae75dc6380e23d5c3006a1c8914868d7e v: v3 --- [refs] | 2 +- trunk/drivers/pci/pci.c | 5 +++-- trunk/include/linux/pci.h | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 4cce75db945a..b622620c44f3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b64c05e7de6071694dd6840eac9724a006ee19f8 +refs/heads/master: b82db5cedf78bfeb4a1c8a28ae284dc671d26eb3 diff --git a/trunk/drivers/pci/pci.c b/trunk/drivers/pci/pci.c index e17cd49d6244..0bf6d254426b 100644 --- a/trunk/drivers/pci/pci.c +++ b/trunk/drivers/pci/pci.c @@ -19,7 +19,6 @@ #include /* isa_dma_bridge_buggy */ #include "pci.h" -#if 0 /** * 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) struct list_head *tmp; unsigned char max, n; - max = bus->number; + max = bus->subordinate; list_for_each(tmp, &bus->children) { n = pci_bus_max_busnr(pci_bus_b(tmp)); if(n > max) @@ -42,7 +41,9 @@ pci_bus_max_busnr(struct pci_bus* bus) } return max; } +EXPORT_SYMBOL_GPL(pci_bus_max_busnr); +#if 0 /** * pci_max_busnr - returns maximum PCI bus number * diff --git a/trunk/include/linux/pci.h b/trunk/include/linux/pci.h index fe1a2b02fc55..2039da1f3672 100644 --- a/trunk/include/linux/pci.h +++ b/trunk/include/linux/pci.h @@ -516,6 +516,7 @@ int pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max, int pass void pci_walk_bus(struct pci_bus *top, void (*cb)(struct pci_dev *, void *), void *userdata); int pci_cfg_space_size(struct pci_dev *dev); +unsigned char pci_bus_max_busnr(struct pci_bus* bus); /* kmem_cache style wrapper around pci_alloc_consistent() */