diff options
author | Tony Luck <tony.luck@intel.com> | 2005-06-21 19:21:20 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-06-21 19:21:20 -0400 |
commit | 29516d75a0b09e0a0328dd55c98a342515c9615a (patch) | |
tree | 4b03326311958ad6de82653a1caf289ad8c38538 /drivers/scsi/osst.c | |
parent | 4ea78729b8dbfc400fe165a57b90a394a7275a54 (diff) | |
parent | 4a4f8fdba6f5a34ca90f426021e17491a30202da (diff) |
Auto merge with /home/aegl/GIT/linus
Diffstat (limited to 'drivers/scsi/osst.c')
-rw-r--r-- | drivers/scsi/osst.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index c585c7bef247..89a4a0615c22 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c | |||
@@ -5608,13 +5608,13 @@ static ssize_t osst_filemark_cnt_show(struct class_device *class_dev, char *buf) | |||
5608 | 5608 | ||
5609 | CLASS_DEVICE_ATTR(file_count, S_IRUGO, osst_filemark_cnt_show, NULL); | 5609 | CLASS_DEVICE_ATTR(file_count, S_IRUGO, osst_filemark_cnt_show, NULL); |
5610 | 5610 | ||
5611 | static struct class_simple * osst_sysfs_class; | 5611 | static struct class *osst_sysfs_class; |
5612 | 5612 | ||
5613 | static int osst_sysfs_valid = 0; | 5613 | static int osst_sysfs_valid = 0; |
5614 | 5614 | ||
5615 | static void osst_sysfs_init(void) | 5615 | static void osst_sysfs_init(void) |
5616 | { | 5616 | { |
5617 | osst_sysfs_class = class_simple_create(THIS_MODULE, "onstream_tape"); | 5617 | osst_sysfs_class = class_create(THIS_MODULE, "onstream_tape"); |
5618 | if ( IS_ERR(osst_sysfs_class) ) | 5618 | if ( IS_ERR(osst_sysfs_class) ) |
5619 | printk(KERN_WARNING "osst :W: Unable to register sysfs class\n"); | 5619 | printk(KERN_WARNING "osst :W: Unable to register sysfs class\n"); |
5620 | else | 5620 | else |
@@ -5627,7 +5627,7 @@ static void osst_sysfs_add(dev_t dev, struct device *device, struct osst_tape * | |||
5627 | 5627 | ||
5628 | if (!osst_sysfs_valid) return; | 5628 | if (!osst_sysfs_valid) return; |
5629 | 5629 | ||
5630 | osst_class_member = class_simple_device_add(osst_sysfs_class, dev, device, "%s", name); | 5630 | osst_class_member = class_device_create(osst_sysfs_class, dev, device, "%s", name); |
5631 | if (IS_ERR(osst_class_member)) { | 5631 | if (IS_ERR(osst_class_member)) { |
5632 | printk(KERN_WARNING "osst :W: Unable to add sysfs class member %s\n", name); | 5632 | printk(KERN_WARNING "osst :W: Unable to add sysfs class member %s\n", name); |
5633 | return; | 5633 | return; |
@@ -5645,13 +5645,13 @@ static void osst_sysfs_destroy(dev_t dev) | |||
5645 | { | 5645 | { |
5646 | if (!osst_sysfs_valid) return; | 5646 | if (!osst_sysfs_valid) return; |
5647 | 5647 | ||
5648 | class_simple_device_remove(dev); | 5648 | class_device_destroy(osst_sysfs_class, dev); |
5649 | } | 5649 | } |
5650 | 5650 | ||
5651 | static void osst_sysfs_cleanup(void) | 5651 | static void osst_sysfs_cleanup(void) |
5652 | { | 5652 | { |
5653 | if (osst_sysfs_valid) { | 5653 | if (osst_sysfs_valid) { |
5654 | class_simple_destroy(osst_sysfs_class); | 5654 | class_destroy(osst_sysfs_class); |
5655 | osst_sysfs_valid = 0; | 5655 | osst_sysfs_valid = 0; |
5656 | } | 5656 | } |
5657 | } | 5657 | } |