aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 2f72e50eca2f..1501eb26af33 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -600,7 +600,7 @@ static int power_off_slot(struct acpiphp_slot *slot)
600 list_for_each (l, &slot->funcs) { 600 list_for_each (l, &slot->funcs) {
601 func = list_entry(l, struct acpiphp_func, sibling); 601 func = list_entry(l, struct acpiphp_func, sibling);
602 602
603 if (func->pci_dev && (func->flags & FUNC_HAS_PS3)) { 603 if (func->flags & FUNC_HAS_PS3) {
604 status = acpi_evaluate_object(func->handle, "_PS3", NULL, NULL); 604 status = acpi_evaluate_object(func->handle, "_PS3", NULL, NULL);
605 if (ACPI_FAILURE(status)) { 605 if (ACPI_FAILURE(status)) {
606 warn("%s: _PS3 failed\n", __FUNCTION__); 606 warn("%s: _PS3 failed\n", __FUNCTION__);
@@ -615,7 +615,7 @@ static int power_off_slot(struct acpiphp_slot *slot)
615 func = list_entry(l, struct acpiphp_func, sibling); 615 func = list_entry(l, struct acpiphp_func, sibling);
616 616
617 /* We don't want to call _EJ0 on non-existing functions. */ 617 /* We don't want to call _EJ0 on non-existing functions. */
618 if (func->pci_dev && (func->flags & FUNC_HAS_EJ0)) { 618 if (func->flags & FUNC_HAS_EJ0) {
619 /* _EJ0 method take one argument */ 619 /* _EJ0 method take one argument */
620 arg_list.count = 1; 620 arg_list.count = 1;
621 arg_list.pointer = &arg; 621 arg_list.pointer = &arg;