diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-03-14 17:12:43 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-22 16:16:29 -0400 |
commit | 7d15d6a4dc08dfd456d834e33ef6c1d798fb2edc (patch) | |
tree | 68401628993c5530154361474ce7e66e5f668e70 /drivers/scsi | |
parent | 807501475fce0ebe68baedf87f202c3e4ee0d12c (diff) |
[SCSI] st: fix up after class_device removal
There's a change in the SCSI tree that adds another class_device, so change
it to an ordinary device
[jejb: this one got rebased until it's basically cosmetic only]
Cc: Kai Makisara <Kai.Makisara@kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/st.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index a860c3a9ae99..e8db66ad0bde 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -4322,7 +4322,7 @@ static void do_remove_sysfs_files(void) | |||
4322 | static ssize_t | 4322 | static ssize_t |
4323 | st_defined_show(struct device *dev, struct device_attribute *attr, char *buf) | 4323 | st_defined_show(struct device *dev, struct device_attribute *attr, char *buf) |
4324 | { | 4324 | { |
4325 | struct st_modedef *STm = (struct st_modedef *)dev_get_drvdata(dev); | 4325 | struct st_modedef *STm = dev_get_drvdata(dev); |
4326 | ssize_t l = 0; | 4326 | ssize_t l = 0; |
4327 | 4327 | ||
4328 | l = snprintf(buf, PAGE_SIZE, "%d\n", STm->defined); | 4328 | l = snprintf(buf, PAGE_SIZE, "%d\n", STm->defined); |
@@ -4334,7 +4334,7 @@ DEVICE_ATTR(defined, S_IRUGO, st_defined_show, NULL); | |||
4334 | static ssize_t | 4334 | static ssize_t |
4335 | st_defblk_show(struct device *dev, struct device_attribute *attr, char *buf) | 4335 | st_defblk_show(struct device *dev, struct device_attribute *attr, char *buf) |
4336 | { | 4336 | { |
4337 | struct st_modedef *STm = (struct st_modedef *)dev_get_drvdata(dev); | 4337 | struct st_modedef *STm = dev_get_drvdata(dev); |
4338 | ssize_t l = 0; | 4338 | ssize_t l = 0; |
4339 | 4339 | ||
4340 | l = snprintf(buf, PAGE_SIZE, "%d\n", STm->default_blksize); | 4340 | l = snprintf(buf, PAGE_SIZE, "%d\n", STm->default_blksize); |
@@ -4346,7 +4346,7 @@ DEVICE_ATTR(default_blksize, S_IRUGO, st_defblk_show, NULL); | |||
4346 | static ssize_t | 4346 | static ssize_t |
4347 | st_defdensity_show(struct device *dev, struct device_attribute *attr, char *buf) | 4347 | st_defdensity_show(struct device *dev, struct device_attribute *attr, char *buf) |
4348 | { | 4348 | { |
4349 | struct st_modedef *STm = (struct st_modedef *)dev_get_drvdata(dev); | 4349 | struct st_modedef *STm = dev_get_drvdata(dev); |
4350 | ssize_t l = 0; | 4350 | ssize_t l = 0; |
4351 | char *fmt; | 4351 | char *fmt; |
4352 | 4352 | ||
@@ -4361,7 +4361,7 @@ static ssize_t | |||
4361 | st_defcompression_show(struct device *dev, struct device_attribute *attr, | 4361 | st_defcompression_show(struct device *dev, struct device_attribute *attr, |
4362 | char *buf) | 4362 | char *buf) |
4363 | { | 4363 | { |
4364 | struct st_modedef *STm = (struct st_modedef *)dev_get_drvdata(dev); | 4364 | struct st_modedef *STm = dev_get_drvdata(dev); |
4365 | ssize_t l = 0; | 4365 | ssize_t l = 0; |
4366 | 4366 | ||
4367 | l = snprintf(buf, PAGE_SIZE, "%d\n", STm->default_compression - 1); | 4367 | l = snprintf(buf, PAGE_SIZE, "%d\n", STm->default_compression - 1); |
@@ -4373,7 +4373,7 @@ DEVICE_ATTR(default_compression, S_IRUGO, st_defcompression_show, NULL); | |||
4373 | static ssize_t | 4373 | static ssize_t |
4374 | st_options_show(struct device *dev, struct device_attribute *attr, char *buf) | 4374 | st_options_show(struct device *dev, struct device_attribute *attr, char *buf) |
4375 | { | 4375 | { |
4376 | struct st_modedef *STm = (struct st_modedef *)dev_get_drvdata(dev); | 4376 | struct st_modedef *STm = dev_get_drvdata(dev); |
4377 | struct scsi_tape *STp; | 4377 | struct scsi_tape *STp; |
4378 | int i, j, options; | 4378 | int i, j, options; |
4379 | ssize_t l = 0; | 4379 | ssize_t l = 0; |