Commit dcce6dc486816d5e1a14e066f611100624421e3a

Authored by Bjorn Helgaas
1 parent 47087700ce

PCI: add pci_clear_flags()

Add a pci_clear_flags() for cases when we statically initialize
pci_flags, then decide to clear things out later.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

include/asm-generic/pci-bridge.h
... ... @@ -45,6 +45,11 @@
45 45 pci_flags |= flags;
46 46 }
47 47  
  48 +static inline void pci_clear_flags(int flags)
  49 +{
  50 + pci_flags &= ~flags;
  51 +}
  52 +
48 53 static inline int pci_has_flag(int flag)
49 54 {
50 55 return pci_flags & flag;
... ... @@ -52,6 +57,7 @@
52 57 #else
53 58 static inline void pci_set_flags(int flags) { }
54 59 static inline void pci_add_flags(int flags) { }
  60 +static inline void pci_clear_flags(int flags) { }
55 61 static inline int pci_has_flag(int flag)
56 62 {
57 63 return 0;