From: Bjorn Helgaas Date: Thu, 23 Feb 2012 21:29:23 +0000 (-0700) Subject: PCI: make pci_flags always available X-Git-Tag: firefly_0821_release~3680^2~3275^2~28^2~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=47087700ce3ccb2bf69f4dcb6ad7f59764e51308;p=firefly-linux-kernel-4.4.55.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 2991a8975064..6db307fa20f5 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;