[PATCH] PCI Hotplug: shpchp driver doesn't program _HPP values properly
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Mon, 23 May 2005 10:50:32 +0000 (19:50 +0900)
committerGreg KH <gregkh@suse.de>
Tue, 31 May 2005 21:26:37 +0000 (14:26 -0700)
Current shpchp driver doesn't seem to program _HPP values
properly. The following patch fixes this issue.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/shpchprm_acpi.c

index 243a51d88b86844d75a7f2e84c7e3522c837a066..18aa65a206a62b664060e10f5e26b7a985db4000 100644 (file)
@@ -1626,7 +1626,7 @@ int shpchprm_set_hpp(
        pci_bus->number = func->bus;
        devfn = PCI_DEVFN(func->device, func->function);
 
-       ab = find_acpi_bridge_by_bus(acpi_bridges_head, ctrl->seg, ctrl->bus);
+       ab = find_acpi_bridge_by_bus(acpi_bridges_head, ctrl->seg, ctrl->slot_bus);
 
        if (ab) {
                if (ab->_hpp) {