diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 23:03:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 12:24:44 -0400 |
commit | d73a1a674b5383bb3b38ae3dd625504ffc623d90 (patch) | |
tree | 40c102d47d3bb2b37bb7f242f537d888b50f5a7a /drivers | |
parent | ea9e42f627a45f979b4977009724eb114406e3c7 (diff) |
device create: scsi: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the
original call to be sane.
Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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); |