]> err.no Git - linux-2.6/blobdiff - drivers/scsi/scsi_scan.c
Pull model-name into release branch
[linux-2.6] / drivers / scsi / scsi_scan.c
index 0f7e6f94d66bd0149bcba35b3c0af6bd9471c780..1bd92b9b46d9ccc5209103beb59cfb75ccafdb5d 100644 (file)
@@ -25,7 +25,6 @@
  *             or a LUN is seen that cannot have a device attached to it.
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/init.h>
@@ -810,6 +809,7 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags)
 
 static inline void scsi_destroy_sdev(struct scsi_device *sdev)
 {
+       scsi_device_set_state(sdev, SDEV_DEL);
        if (sdev->host->hostt->slave_destroy)
                sdev->host->hostt->slave_destroy(sdev);
        transport_destroy_device(&sdev->sdev_gendev);