diff options
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 60b262d66b5..f697229ae5a 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -1909,10 +1909,9 @@ struct scsi_device *scsi_get_host_dev(struct Scsi_Host *shost) | |||
1909 | goto out; | 1909 | goto out; |
1910 | 1910 | ||
1911 | sdev = scsi_alloc_sdev(starget, 0, NULL); | 1911 | sdev = scsi_alloc_sdev(starget, 0, NULL); |
1912 | if (sdev) { | 1912 | if (sdev) |
1913 | sdev->sdev_gendev.parent = get_device(&starget->dev); | ||
1914 | sdev->borken = 0; | 1913 | sdev->borken = 0; |
1915 | } else | 1914 | else |
1916 | scsi_target_reap(starget); | 1915 | scsi_target_reap(starget); |
1917 | put_device(&starget->dev); | 1916 | put_device(&starget->dev); |
1918 | out: | 1917 | out: |