[PATCH] acpi hotplug: fix slot power-down problem with acpiphp

Earlier I reported that Matthew's acpiphp rewrite had problem in powering down
slot on my i386 system. The following patch is needed to get the acpiphp
rewrite properly powering down the slot.

Signed-off-by: Dely Sy <dely.l.sy@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by Rajesh Shah and committed by Greg Kroah-Hartman 2f523b15 364d5094

+2 -2
+2 -2
drivers/pci/hotplug/acpiphp_glue.c
··· 600 600 list_for_each (l, &slot->funcs) { 601 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 604 status = acpi_evaluate_object(func->handle, "_PS3", NULL, NULL); 605 605 if (ACPI_FAILURE(status)) { 606 606 warn("%s: _PS3 failed\n", __FUNCTION__); ··· 615 615 func = list_entry(l, struct acpiphp_func, sibling); 616 616 617 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 619 /* _EJ0 method take one argument */ 620 620 arg_list.count = 1; 621 621 arg_list.pointer = &arg;