aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_link.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/pci_link.c')
-rw-r--r--drivers/acpi/pci_link.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index 65cea07abbc3..834c2ceff1aa 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -798,6 +798,11 @@ acpi_pci_link_resume(
798 return_VALUE(0); 798 return_VALUE(0);
799} 799}
800 800
801/*
802 * FIXME: this is a workaround to avoid nasty warning. It will be removed
803 * after every device calls pci_disable_device in .resume.
804 */
805int acpi_in_resume;
801static int 806static int
802irqrouter_resume( 807irqrouter_resume(
803 struct sys_device *dev) 808 struct sys_device *dev)
@@ -807,6 +812,7 @@ irqrouter_resume(
807 812
808 ACPI_FUNCTION_TRACE("irqrouter_resume"); 813 ACPI_FUNCTION_TRACE("irqrouter_resume");
809 814
815 acpi_in_resume = 1;
810 list_for_each(node, &acpi_link.entries) { 816 list_for_each(node, &acpi_link.entries) {
811 link = list_entry(node, struct acpi_pci_link, node); 817 link = list_entry(node, struct acpi_pci_link, node);
812 if (!link) { 818 if (!link) {
@@ -816,6 +822,7 @@ irqrouter_resume(
816 } 822 }
817 acpi_pci_link_resume(link); 823 acpi_pci_link_resume(link);
818 } 824 }
825 acpi_in_resume = 0;
819 return_VALUE(0); 826 return_VALUE(0);
820} 827}
821 828