diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-12-03 16:41:36 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-01-02 11:22:16 -0500 |
commit | 71610f55fa4db63dbf5385929a47c9fb2451f332 (patch) | |
tree | b816672eef25e1436111e6c78053612bd22fb016 /drivers/scsi/sd.c | |
parent | b58602a4bac012b5f4fc12fe6b46ab237b610d5d (diff) |
[SCSI] struct device - replace bus_id with dev_name(), dev_set_name()
[jejb: limit ioctl to returning 20 characters to avoid overrun
on long device names and add a few more conversions]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 62b28d58e65e..835aebf78710 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -1876,7 +1876,7 @@ static int sd_probe(struct device *dev) | |||
1876 | device_initialize(&sdkp->dev); | 1876 | device_initialize(&sdkp->dev); |
1877 | sdkp->dev.parent = &sdp->sdev_gendev; | 1877 | sdkp->dev.parent = &sdp->sdev_gendev; |
1878 | sdkp->dev.class = &sd_disk_class; | 1878 | sdkp->dev.class = &sd_disk_class; |
1879 | strncpy(sdkp->dev.bus_id, sdp->sdev_gendev.bus_id, BUS_ID_SIZE); | 1879 | dev_set_name(&sdkp->dev, dev_name(&sdp->sdev_gendev)); |
1880 | 1880 | ||
1881 | if (device_add(&sdkp->dev)) | 1881 | if (device_add(&sdkp->dev)) |
1882 | goto out_free_index; | 1882 | goto out_free_index; |