mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]>
This commit is contained in:
parent
47087700ce
commit
dcce6dc486
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue