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/scsi/ch.c | |
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/scsi/ch.c')
-rw-r--r-- | drivers/scsi/ch.c | 6 |
1 files changed, 3 insertions, 3 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); |