]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] PCI: Export pci_cfg_space_size
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 13 Dec 2005 07:09:16 +0000 (18:09 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:19 +0000 (12:13 -0800)
The powerpc PCI code sets up the PCI tree without doing config space
accesses in most cases, from the firmware tree. However, it still wants
to call pci_cfg_space_size() under some conditions, thus it needs to
be made non-static (though I don't see a point to export it to modules).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/probe.c
include/linux/pci.h

index 3c9834d8085014b054b3329c95cf76c5f9b3d365..adfad4fd6a13d66297546c917c8833f65b13a256 100644 (file)
@@ -717,7 +717,7 @@ static void pci_release_dev(struct device *dev)
  * reading the dword at 0x100 which must either be 0 or a valid extended
  * capability header.
  */
-static int pci_cfg_space_size(struct pci_dev *dev)
+int pci_cfg_space_size(struct pci_dev *dev)
 {
        int pos;
        u32 status;
index b32f70fe2dbd074e2ed200cb2c187a15456dd292..d0e003926744a347f5a8e9beb1d626b9a19db4a1 100644 (file)
@@ -449,6 +449,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);
 
 /* kmem_cache style wrapper around pci_alloc_consistent() */