diff options
Diffstat (limited to 'drivers/scsi/pcmcia/sym53c500_cs.c')
-rw-r--r-- | drivers/scsi/pcmcia/sym53c500_cs.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c index 3454a5714749..0be232b58ffb 100644 --- a/drivers/scsi/pcmcia/sym53c500_cs.c +++ b/drivers/scsi/pcmcia/sym53c500_cs.c | |||
@@ -632,9 +632,10 @@ SYM53C500_biosparm(struct scsi_device *disk, | |||
632 | } | 632 | } |
633 | 633 | ||
634 | static ssize_t | 634 | static ssize_t |
635 | SYM53C500_show_pio(struct class_device *cdev, char *buf) | 635 | SYM53C500_show_pio(struct device *dev, struct device_attribute *attr, |
636 | char *buf) | ||
636 | { | 637 | { |
637 | struct Scsi_Host *SHp = class_to_shost(cdev); | 638 | struct Scsi_Host *SHp = class_to_shost(dev); |
638 | struct sym53c500_data *data = | 639 | struct sym53c500_data *data = |
639 | (struct sym53c500_data *)SHp->hostdata; | 640 | (struct sym53c500_data *)SHp->hostdata; |
640 | 641 | ||
@@ -642,10 +643,11 @@ SYM53C500_show_pio(struct class_device *cdev, char *buf) | |||
642 | } | 643 | } |
643 | 644 | ||
644 | static ssize_t | 645 | static ssize_t |
645 | SYM53C500_store_pio(struct class_device *cdev, const char *buf, size_t count) | 646 | SYM53C500_store_pio(struct device *dev, struct device_attribute *attr, |
647 | const char *buf, size_t count) | ||
646 | { | 648 | { |
647 | int pio; | 649 | int pio; |
648 | struct Scsi_Host *SHp = class_to_shost(cdev); | 650 | struct Scsi_Host *SHp = class_to_shost(dev); |
649 | struct sym53c500_data *data = | 651 | struct sym53c500_data *data = |
650 | (struct sym53c500_data *)SHp->hostdata; | 652 | (struct sym53c500_data *)SHp->hostdata; |
651 | 653 | ||
@@ -662,7 +664,7 @@ SYM53C500_store_pio(struct class_device *cdev, const char *buf, size_t count) | |||
662 | * SCSI HBA device attributes we want to | 664 | * SCSI HBA device attributes we want to |
663 | * make available via sysfs. | 665 | * make available via sysfs. |
664 | */ | 666 | */ |
665 | static struct class_device_attribute SYM53C500_pio_attr = { | 667 | static struct device_attribute SYM53C500_pio_attr = { |
666 | .attr = { | 668 | .attr = { |
667 | .name = "fast_pio", | 669 | .name = "fast_pio", |
668 | .mode = (S_IRUGO | S_IWUSR), | 670 | .mode = (S_IRUGO | S_IWUSR), |
@@ -671,7 +673,7 @@ static struct class_device_attribute SYM53C500_pio_attr = { | |||
671 | .store = SYM53C500_store_pio, | 673 | .store = SYM53C500_store_pio, |
672 | }; | 674 | }; |
673 | 675 | ||
674 | static struct class_device_attribute *SYM53C500_shost_attrs[] = { | 676 | static struct device_attribute *SYM53C500_shost_attrs[] = { |
675 | &SYM53C500_pio_attr, | 677 | &SYM53C500_pio_attr, |
676 | NULL, | 678 | NULL, |
677 | }; | 679 | }; |