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/sni_53c710.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/sni_53c710.c')
-rw-r--r-- | drivers/scsi/sni_53c710.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c index 2bbef4c45a0d..77f0b2cdaa94 100644 --- a/drivers/scsi/sni_53c710.c +++ b/drivers/scsi/sni_53c710.c | |||
@@ -78,8 +78,7 @@ static int __init snirm710_probe(struct platform_device *dev) | |||
78 | base = res->start; | 78 | base = res->start; |
79 | hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); | 79 | hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); |
80 | if (!hostdata) { | 80 | if (!hostdata) { |
81 | printk(KERN_ERR "%s: Failed to allocate host data\n", | 81 | dev_printk(KERN_ERR, dev, "Failed to allocate host data\n"); |
82 | dev->dev.bus_id); | ||
83 | return -ENOMEM; | 82 | return -ENOMEM; |
84 | } | 83 | } |
85 | 84 | ||