From: Bjorn Helgaas Date: Thu, 23 Feb 2012 21:29:23 +0000 (-0700) Subject: PCI: make pci_flags always available X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=47087700ce3ccb2bf69f4dcb6ad7f59764e51308;p=mv-sheeva.git PCI: make pci_flags always available 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 --- diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 2991a897506..6db307fa20f 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -25,8 +25,11 @@ #include #include #include +#include #include "pci.h" +unsigned int __weak pci_flags; + struct pci_dev_resource { struct list_head list; struct resource *res;