diff options
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r-- | drivers/scsi/st.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index c2bb53e3d941..5c28d08f18f4 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -4428,13 +4428,10 @@ static int do_create_class_files(struct scsi_tape *STp, int dev_num, int mode) | |||
4428 | snprintf(name, 10, "%s%s%s", rew ? "n" : "", | 4428 | snprintf(name, 10, "%s%s%s", rew ? "n" : "", |
4429 | STp->disk->disk_name, st_formats[i]); | 4429 | STp->disk->disk_name, st_formats[i]); |
4430 | st_class_member = | 4430 | st_class_member = |
4431 | device_create_drvdata(st_sysfs_class, | 4431 | device_create(st_sysfs_class, &STp->device->sdev_gendev, |
4432 | &STp->device->sdev_gendev, | 4432 | MKDEV(SCSI_TAPE_MAJOR, |
4433 | MKDEV(SCSI_TAPE_MAJOR, | 4433 | TAPE_MINOR(dev_num, mode, rew)), |
4434 | TAPE_MINOR(dev_num, | 4434 | &STp->modes[mode], "%s", name); |
4435 | mode, rew)), | ||
4436 | &STp->modes[mode], | ||
4437 | "%s", name); | ||
4438 | if (IS_ERR(st_class_member)) { | 4435 | if (IS_ERR(st_class_member)) { |
4439 | printk(KERN_WARNING "st%d: device_create failed\n", | 4436 | printk(KERN_WARNING "st%d: device_create failed\n", |
4440 | dev_num); | 4437 | dev_num); |