[SCSI] remove scsi_set_device
scsi_add_host is the proper place to set the device, but people copy the scsi_set_device usage from older drivers again and again. note that this leaves some legacy drivers like qlogicisp/qlogicfc without pci association in sysfs, but they're scheduled to go away soon anyway. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
117e4b27eb
commit
12413197ee
@@ -180,11 +180,6 @@ static void scsi_host_dev_release(struct device *dev)
|
||||
scsi_destroy_command_freelist(shost);
|
||||
kfree(shost->shost_data);
|
||||
|
||||
/*
|
||||
* Some drivers (eg aha1542) do scsi_register()/scsi_unregister()
|
||||
* during probing without performing a scsi_set_device() in between.
|
||||
* In this case dev->parent is NULL.
|
||||
*/
|
||||
if (parent)
|
||||
put_device(parent);
|
||||
kfree(shost);
|
||||
|
Reference in New Issue
Block a user