From: Bjorn Helgaas Date: Fri, 24 Feb 2012 03:18:56 +0000 (-0700) Subject: PCI: add pci_clear_flags() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dcce6dc486816d5e1a14e066f611100624421e3a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 --- diff --git a/include/asm-generic/pci-bridge.h b/include/asm-generic/pci-bridge.h index 4a5aca2a2c9..a5b5d5a89a4 100644 --- a/include/asm-generic/pci-bridge.h +++ b/include/asm-generic/pci-bridge.h @@ -45,6 +45,11 @@ static inline void pci_add_flags(int flags) pci_flags |= flags; } +static inline void pci_clear_flags(int flags) +{ + pci_flags &= ~flags; +} + static inline int pci_has_flag(int flag) { return pci_flags & flag; @@ -52,6 +57,7 @@ static inline int pci_has_flag(int flag) #else static inline void pci_set_flags(int flags) { } static inline void pci_add_flags(int flags) { } +static inline void pci_clear_flags(int flags) { } static inline int pci_has_flag(int flag) { return 0;