|
@@ -320,15 +320,15 @@ static int disable_slot(struct hotplug_slot *slot)
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* remove the device from the pci core */
|
|
|
|
+ pci_remove_bus_device(dev);
|
|
|
|
+
|
|
/* queue work item to blow away this sysfs entry and other
|
|
/* queue work item to blow away this sysfs entry and other
|
|
* parts.
|
|
* parts.
|
|
*/
|
|
*/
|
|
INIT_WORK(&dslot->remove_work, remove_slot_worker);
|
|
INIT_WORK(&dslot->remove_work, remove_slot_worker);
|
|
queue_work(dummyphp_wq, &dslot->remove_work);
|
|
queue_work(dummyphp_wq, &dslot->remove_work);
|
|
|
|
|
|
- /* blow away this sysfs entry and other parts. */
|
|
|
|
- remove_slot(dslot);
|
|
|
|
-
|
|
|
|
pci_dev_put(dev);
|
|
pci_dev_put(dev);
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|