diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/ch.c | 6 | ||||
-rw-r--r-- | drivers/scsi/dpt_i2o.c | 2 | ||||
-rw-r--r-- | drivers/scsi/osst.c | 3 | ||||
-rw-r--r-- | drivers/scsi/sg.c | 10 | ||||
-rw-r--r-- | drivers/scsi/st.c | 11 |
5 files changed, 14 insertions, 18 deletions
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c index 3c257fe0893e..88ecf94ad979 100644 --- a/drivers/scsi/ch.c +++ b/drivers/scsi/ch.c | |||
@@ -914,9 +914,9 @@ static int ch_probe(struct device *dev) | |||
914 | ch->minor = minor; | 914 | ch->minor = minor; |
915 | sprintf(ch->name,"ch%d",ch->minor); | 915 | sprintf(ch->name,"ch%d",ch->minor); |
916 | 916 | ||
917 | class_dev = device_create_drvdata(ch_sysfs_class, dev, | 917 | class_dev = device_create(ch_sysfs_class, dev, |
918 | MKDEV(SCSI_CHANGER_MAJOR, ch->minor), | 918 | MKDEV(SCSI_CHANGER_MAJOR, ch->minor), ch, |
919 | ch, "s%s", ch->name); | 919 | "s%s", ch->name); |
920 | if (IS_ERR(class_dev)) { | 920 | if (IS_ERR(class_dev)) { |
921 | printk(KERN_WARNING "ch%d: device_create failed\n", | 921 | printk(KERN_WARNING "ch%d: device_create failed\n", |
922 | ch->minor); | 922 | ch->minor); |
diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index 1fe0901e8119..8aba4fdfb522 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c | |||
@@ -271,7 +271,7 @@ rebuild_sys_tab: | |||
271 | pHba->initialized = TRUE; | 271 | pHba->initialized = TRUE; |
272 | pHba->state &= ~DPTI_STATE_RESET; | 272 | pHba->state &= ~DPTI_STATE_RESET; |
273 | if (adpt_sysfs_class) { | 273 | if (adpt_sysfs_class) { |
274 | struct device *dev = device_create_drvdata(adpt_sysfs_class, | 274 | struct device *dev = device_create(adpt_sysfs_class, |
275 | NULL, MKDEV(DPTI_I2O_MAJOR, pHba->unit), NULL, | 275 | NULL, MKDEV(DPTI_I2O_MAJOR, pHba->unit), NULL, |
276 | "dpti%d", pHba->unit); | 276 | "dpti%d", pHba->unit); |
277 | if (IS_ERR(dev)) { | 277 | if (IS_ERR(dev)) { |
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 1c79f9794f4e..0ea78d9a37db 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c | |||
@@ -5708,7 +5708,8 @@ static int osst_sysfs_add(dev_t dev, struct device *device, struct osst_tape * S | |||
5708 | struct device *osst_member; | 5708 | struct device *osst_member; |
5709 | int err; | 5709 | int err; |
5710 | 5710 | ||
5711 | osst_member = device_create_drvdata(osst_sysfs_class, device, dev, STp, "%s", name); | 5711 | osst_member = device_create(osst_sysfs_class, device, dev, STp, |
5712 | "%s", name); | ||
5712 | if (IS_ERR(osst_member)) { | 5713 | if (IS_ERR(osst_member)) { |
5713 | printk(KERN_WARNING "osst :W: Unable to add sysfs class member %s\n", name); | 5714 | printk(KERN_WARNING "osst :W: Unable to add sysfs class member %s\n", name); |
5714 | return PTR_ERR(osst_member); | 5715 | return PTR_ERR(osst_member); |
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index ba9b9bbd4e73..93bd59a1ed79 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1450,12 +1450,10 @@ sg_add(struct device *cl_dev, struct class_interface *cl_intf) | |||
1450 | if (sg_sysfs_valid) { | 1450 | if (sg_sysfs_valid) { |
1451 | struct device *sg_class_member; | 1451 | struct device *sg_class_member; |
1452 | 1452 | ||
1453 | sg_class_member = device_create_drvdata(sg_sysfs_class, | 1453 | sg_class_member = device_create(sg_sysfs_class, cl_dev->parent, |
1454 | cl_dev->parent, | 1454 | MKDEV(SCSI_GENERIC_MAJOR, |
1455 | MKDEV(SCSI_GENERIC_MAJOR, | 1455 | sdp->index), |
1456 | sdp->index), | 1456 | sdp, "%s", disk->disk_name); |
1457 | sdp, | ||
1458 | "%s", disk->disk_name); | ||
1459 | if (IS_ERR(sg_class_member)) { | 1457 | if (IS_ERR(sg_class_member)) { |
1460 | printk(KERN_ERR "sg_add: " | 1458 | printk(KERN_ERR "sg_add: " |
1461 | "device_create failed\n"); | 1459 | "device_create failed\n"); |
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); |