|
@@ -176,6 +176,7 @@ void scsi_remove_host(struct Scsi_Host *shost)
|
|
transport_unregister_device(&shost->shost_gendev);
|
|
transport_unregister_device(&shost->shost_gendev);
|
|
class_device_unregister(&shost->shost_classdev);
|
|
class_device_unregister(&shost->shost_classdev);
|
|
device_del(&shost->shost_gendev);
|
|
device_del(&shost->shost_gendev);
|
|
|
|
+ scsi_proc_hostdir_rm(shost->hostt);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(scsi_remove_host);
|
|
EXPORT_SYMBOL(scsi_remove_host);
|
|
|
|
|
|
@@ -262,7 +263,6 @@ static void scsi_host_dev_release(struct device *dev)
|
|
if (shost->work_q)
|
|
if (shost->work_q)
|
|
destroy_workqueue(shost->work_q);
|
|
destroy_workqueue(shost->work_q);
|
|
|
|
|
|
- scsi_proc_hostdir_rm(shost->hostt);
|
|
|
|
scsi_destroy_command_freelist(shost);
|
|
scsi_destroy_command_freelist(shost);
|
|
kfree(shost->shost_data);
|
|
kfree(shost->shost_data);
|
|
|
|
|