]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/pci/hotplug/rpaphp_pci.c
[PATCH] shpchp: fix oops at driver unload
[linux-2.6-omap-h63xx.git] / drivers / pci / hotplug / rpaphp_pci.c
index 49e4d10a6488ea79dadb4f4ee324b5ef361e0966..46c157d26a2f9b90d6cfbe3d08fa1229c30a0d46 100644 (file)
@@ -319,20 +319,15 @@ static void rpaphp_eeh_remove_bus_device(struct pci_dev *dev)
        return;
 }
 
-int rpaphp_unconfig_pci_adapter(struct slot *slot)
+int rpaphp_unconfig_pci_adapter(struct pci_bus *bus)
 {
        struct pci_dev *dev, *tmp;
-       int retval = 0;
 
-       list_for_each_entry_safe(dev, tmp, slot->pci_devs, bus_list) {
+       list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list) {
                rpaphp_eeh_remove_bus_device(dev);
                pci_remove_bus_device(dev);
        }
-
-       slot->state = NOT_CONFIGURED;
-       info("%s: devices in slot[%s] unconfigured.\n", __FUNCTION__,
-            slot->name);
-       return retval;
+       return 0;
 }
 
 static int setup_pci_hotplug_slot_info(struct slot *slot)