aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/apei/hest.c6
-rw-r--r--drivers/acpi/pci_root.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c
index 4ee58e72b73..abda3786a5d 100644
--- a/drivers/acpi/apei/hest.c
+++ b/drivers/acpi/apei/hest.c
@@ -201,14 +201,14 @@ void __init acpi_hest_init(void)
201 int rc = -ENODEV; 201 int rc = -ENODEV;
202 unsigned int ghes_count = 0; 202 unsigned int ghes_count = 0;
203 203
204 if (acpi_disabled)
205 return;
206
207 if (hest_disable) { 204 if (hest_disable) {
208 pr_info(HEST_PFX "Table parsing disabled.\n"); 205 pr_info(HEST_PFX "Table parsing disabled.\n");
209 return; 206 return;
210 } 207 }
211 208
209 if (acpi_disabled)
210 goto err;
211
212 status = acpi_get_table(ACPI_SIG_HEST, 0, 212 status = acpi_get_table(ACPI_SIG_HEST, 0,
213 (struct acpi_table_header **)&hest_tab); 213 (struct acpi_table_header **)&hest_tab);
214 if (status == AE_NOT_FOUND) { 214 if (status == AE_NOT_FOUND) {
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index d9766797cd9..85249395623 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -633,11 +633,11 @@ static int acpi_pci_root_remove(struct acpi_device *device, int type)
633 633
634static int __init acpi_pci_root_init(void) 634static int __init acpi_pci_root_init(void)
635{ 635{
636 acpi_hest_init();
637
636 if (acpi_pci_disabled) 638 if (acpi_pci_disabled)
637 return 0; 639 return 0;
638 640
639 acpi_hest_init();
640
641 pci_acpi_crs_quirks(); 641 pci_acpi_crs_quirks();
642 if (acpi_bus_register_driver(&acpi_pci_root_driver) < 0) 642 if (acpi_bus_register_driver(&acpi_pci_root_driver) < 0)
643 return -ENODEV; 643 return -ENODEV;