transport_unregister_device(&sdev->sdev_gendev); put_device(&sdev->sdev_gendev);
transport_destroy_device(dev); put_device(dev);
void __scsi_remove_device(struct scsi_device *sdev){	if (scsi_device_set_state(sdev, SDEV_CANCEL) != 0)		return;	class_device_unregister(&sdev->sdev_classdev);	device_del(&sdev->sdev_gendev);	scsi_device_set_state(sdev, SDEV_DEL);	if (sdev->host->hostt->slave_destroy)		sdev->host->hostt->slave_destroy(sdev);	transport_unregister_device(&sdev->sdev_gendev);	put_device(&sdev->sdev_gendev);}