aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Nowicki <tn@semihalf.com>2015-11-05 16:05:26 +0100
committerTomasz Nowicki <tn@semihalf.com>2016-01-22 12:18:43 +0100
commit8e5cdd51d145b4bcfb4e4d410cfa990bc9007f9d (patch)
tree18c62edef25e32898faaddbee5ac5cc40b564e85
parentc2fd2c53ba748c86f351ac5e2b5743b7439bc975 (diff)
downloadleg-kernel-8e5cdd51d145b4bcfb4e4d410cfa990bc9007f9d.tar.gz
x86, acpi, pci: Use equivalent function introduced in previous patch.
Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
-rw-r--r--arch/x86/pci/acpi.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c
index 286e0f595e2a..c4d79d2e35f5 100644
--- a/arch/x86/pci/acpi.c
+++ b/arch/x86/pci/acpi.c
@@ -201,29 +201,11 @@ static int setup_mcfg_map(struct acpi_pci_root_info *ci)
return 0;
}
-
-static void teardown_mcfg_map(struct acpi_pci_root_info *ci)
-{
- struct acpi_pci_root *root = ci->root;
- struct pci_mmcfg_region *cfg;
-
- cfg = pci_mmconfig_lookup(root->segment, root->secondary.start);
- if (!cfg)
- return;
-
- if (cfg->hot_added)
- pci_mmconfig_delete(root->segment, root->secondary.start,
- root->secondary.end);
-}
#else
static int setup_mcfg_map(struct acpi_pci_root_info *ci)
{
return 0;
}
-
-static void teardown_mcfg_map(struct acpi_pci_root_info *ci)
-{
-}
#endif
static int pci_acpi_root_get_node(struct acpi_pci_root *root)
@@ -251,7 +233,7 @@ static int pci_acpi_root_init_info(struct acpi_pci_root_info *ci)
static void pci_acpi_root_release_info(struct acpi_pci_root_info *ci)
{
- teardown_mcfg_map(ci);
+ pci_mmcfg_teardown_map(ci);
kfree(container_of(ci, struct pci_root_info, common));
}