diff options
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
| -rw-r--r-- | drivers/scsi/scsi_scan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 3d0a1e6e9c48..087821fac8fe 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
| @@ -417,9 +417,7 @@ static struct scsi_target *scsi_alloc_target(struct device *parent, | |||
| 417 | starget->reap_ref = 1; | 417 | starget->reap_ref = 1; |
| 418 | dev->parent = get_device(parent); | 418 | dev->parent = get_device(parent); |
| 419 | dev_set_name(dev, "target%d:%d:%d", shost->host_no, channel, id); | 419 | dev_set_name(dev, "target%d:%d:%d", shost->host_no, channel, id); |
| 420 | #ifndef CONFIG_SYSFS_DEPRECATED | ||
| 421 | dev->bus = &scsi_bus_type; | 420 | dev->bus = &scsi_bus_type; |
| 422 | #endif | ||
| 423 | dev->type = &scsi_target_type; | 421 | dev->type = &scsi_target_type; |
| 424 | starget->id = id; | 422 | starget->id = id; |
| 425 | starget->channel = channel; | 423 | starget->channel = channel; |
