]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
PCI: make pci_flags always available
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Feb 2012 21:29:23 +0000 (14:29 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Feb 2012 03:18:55 +0000 (20:18 -0700)
If we move resource assignment functions into the core, we'll still
need a way for architectures to prevent reassignment, e.g., the
"pci_probe_only" functionality, and we'll need a generic, always
available way the core can test for that.  The "pci_flags"
arrangement used by several architectures seems like a convenient
way to do this.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-bus.c

index 2991a89750640403b3aead0c489c1cf1ca5d14f1..6db307fa20f53c58c24921e25ef698de9b547f51 100644 (file)
 #include <linux/ioport.h>
 #include <linux/cache.h>
 #include <linux/slab.h>
+#include <asm-generic/pci-bridge.h>
 #include "pci.h"
 
+unsigned int __weak pci_flags;
+
 struct pci_dev_resource {
        struct list_head list;
        struct resource *res;