|
@@ -765,7 +765,7 @@ int pcie_init_notification(struct controller *ctrl)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static void pcie_shutdown_notification(struct controller *ctrl)
|
|
|
+void pcie_shutdown_notification(struct controller *ctrl)
|
|
|
{
|
|
|
if (ctrl->notification_enabled) {
|
|
|
pcie_disable_notification(ctrl);
|
|
@@ -800,7 +800,7 @@ abort:
|
|
|
static void pcie_cleanup_slot(struct controller *ctrl)
|
|
|
{
|
|
|
struct slot *slot = ctrl->slot;
|
|
|
- cancel_delayed_work(&slot->work);
|
|
|
+
|
|
|
destroy_workqueue(slot->wq);
|
|
|
kfree(slot);
|
|
|
}
|
|
@@ -893,7 +893,6 @@ abort:
|
|
|
|
|
|
void pciehp_release_ctrl(struct controller *ctrl)
|
|
|
{
|
|
|
- pcie_shutdown_notification(ctrl);
|
|
|
pcie_cleanup_slot(ctrl);
|
|
|
kfree(ctrl);
|
|
|
}
|