diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 2c9ac70254e2..d36f35ff6c5d 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -4406,6 +4406,15 @@ static void pci_no_domains(void) | |||
4406 | #endif | 4406 | #endif |
4407 | } | 4407 | } |
4408 | 4408 | ||
4409 | #ifdef CONFIG_PCI_DOMAINS | ||
4410 | static atomic_t __domain_nr = ATOMIC_INIT(-1); | ||
4411 | |||
4412 | int pci_get_new_domain_nr(void) | ||
4413 | { | ||
4414 | return atomic_inc_return(&__domain_nr); | ||
4415 | } | ||
4416 | #endif | ||
4417 | |||
4409 | /** | 4418 | /** |
4410 | * pci_ext_cfg_avail - can we access extended PCI config space? | 4419 | * pci_ext_cfg_avail - can we access extended PCI config space? |
4411 | * | 4420 | * |