aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_rz1000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_rz1000.c')
-rw-r--r--drivers/ata/pata_rz1000.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c
index 7632fcb070ca..ba8a31c55edb 100644
--- a/drivers/ata/pata_rz1000.c
+++ b/drivers/ata/pata_rz1000.c
@@ -26,7 +26,7 @@
26 26
27/** 27/**
28 * rz1000_set_mode - mode setting function 28 * rz1000_set_mode - mode setting function
29 * @ap: ATA interface 29 * @link: ATA link
30 * @unused: returned device on set_mode failure 30 * @unused: returned device on set_mode failure
31 * 31 *
32 * Use a non standard set_mode function. We don't want to be tuned. We 32 * Use a non standard set_mode function. We don't want to be tuned. We
@@ -34,12 +34,11 @@
34 * whacked out. 34 * whacked out.
35 */ 35 */
36 36
37static int rz1000_set_mode(struct ata_port *ap, struct ata_device **unused) 37static int rz1000_set_mode(struct ata_link *link, struct ata_device **unused)
38{ 38{
39 int i; 39 struct ata_device *dev;
40 40
41 for (i = 0; i < ATA_MAX_DEVICES; i++) { 41 ata_link_for_each_dev(dev, link) {
42 struct ata_device *dev = &ap->device[i];
43 if (ata_dev_enabled(dev)) { 42 if (ata_dev_enabled(dev)) {
44 /* We don't really care */ 43 /* We don't really care */
45 dev->pio_mode = XFER_PIO_0; 44 dev->pio_mode = XFER_PIO_0;
@@ -74,7 +73,6 @@ static struct scsi_host_template rz1000_sht = {
74static struct ata_port_operations rz1000_port_ops = { 73static struct ata_port_operations rz1000_port_ops = {
75 .set_mode = rz1000_set_mode, 74 .set_mode = rz1000_set_mode,
76 75
77 .port_disable = ata_port_disable,
78 .tf_load = ata_tf_load, 76 .tf_load = ata_tf_load,
79 .tf_read = ata_tf_read, 77 .tf_read = ata_tf_read,
80 .check_status = ata_check_status, 78 .check_status = ata_check_status,
@@ -100,9 +98,8 @@ static struct ata_port_operations rz1000_port_ops = {
100 .irq_handler = ata_interrupt, 98 .irq_handler = ata_interrupt,
101 .irq_clear = ata_bmdma_irq_clear, 99 .irq_clear = ata_bmdma_irq_clear,
102 .irq_on = ata_irq_on, 100 .irq_on = ata_irq_on,
103 .irq_ack = ata_irq_ack,
104 101
105 .port_start = ata_port_start, 102 .port_start = ata_sff_port_start,
106}; 103};
107 104
108static int rz1000_fifo_disable(struct pci_dev *pdev) 105static int rz1000_fifo_disable(struct pci_dev *pdev)