diff options
Diffstat (limited to 'drivers/ata/pata_hpt3x2n.c')
-rw-r--r-- | drivers/ata/pata_hpt3x2n.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c index f8f234bfc8ce..9f1c084f846f 100644 --- a/drivers/ata/pata_hpt3x2n.c +++ b/drivers/ata/pata_hpt3x2n.c | |||
@@ -141,21 +141,22 @@ static int hpt3x2n_cable_detect(struct ata_port *ap) | |||
141 | 141 | ||
142 | /** | 142 | /** |
143 | * hpt3x2n_pre_reset - reset the hpt3x2n bus | 143 | * hpt3x2n_pre_reset - reset the hpt3x2n bus |
144 | * @ap: ATA port to reset | 144 | * @link: ATA link to reset |
145 | * @deadline: deadline jiffies for the operation | 145 | * @deadline: deadline jiffies for the operation |
146 | * | 146 | * |
147 | * Perform the initial reset handling for the 3x2n series controllers. | 147 | * Perform the initial reset handling for the 3x2n series controllers. |
148 | * Reset the hardware and state machine, | 148 | * Reset the hardware and state machine, |
149 | */ | 149 | */ |
150 | 150 | ||
151 | static int hpt3xn_pre_reset(struct ata_port *ap, unsigned long deadline) | 151 | static int hpt3xn_pre_reset(struct ata_link *link, unsigned long deadline) |
152 | { | 152 | { |
153 | struct ata_port *ap = link->ap; | ||
153 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 154 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
154 | /* Reset the state machine */ | 155 | /* Reset the state machine */ |
155 | pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); | 156 | pci_write_config_byte(pdev, 0x50 + 4 * ap->port_no, 0x37); |
156 | udelay(100); | 157 | udelay(100); |
157 | 158 | ||
158 | return ata_std_prereset(ap, deadline); | 159 | return ata_std_prereset(link, deadline); |
159 | } | 160 | } |
160 | 161 | ||
161 | /** | 162 | /** |
@@ -360,7 +361,6 @@ static struct scsi_host_template hpt3x2n_sht = { | |||
360 | */ | 361 | */ |
361 | 362 | ||
362 | static struct ata_port_operations hpt3x2n_port_ops = { | 363 | static struct ata_port_operations hpt3x2n_port_ops = { |
363 | .port_disable = ata_port_disable, | ||
364 | .set_piomode = hpt3x2n_set_piomode, | 364 | .set_piomode = hpt3x2n_set_piomode, |
365 | .set_dmamode = hpt3x2n_set_dmamode, | 365 | .set_dmamode = hpt3x2n_set_dmamode, |
366 | .mode_filter = ata_pci_default_filter, | 366 | .mode_filter = ata_pci_default_filter, |
@@ -390,9 +390,8 @@ static struct ata_port_operations hpt3x2n_port_ops = { | |||
390 | .irq_handler = ata_interrupt, | 390 | .irq_handler = ata_interrupt, |
391 | .irq_clear = ata_bmdma_irq_clear, | 391 | .irq_clear = ata_bmdma_irq_clear, |
392 | .irq_on = ata_irq_on, | 392 | .irq_on = ata_irq_on, |
393 | .irq_ack = ata_irq_ack, | ||
394 | 393 | ||
395 | .port_start = ata_port_start, | 394 | .port_start = ata_sff_port_start, |
396 | }; | 395 | }; |
397 | 396 | ||
398 | /** | 397 | /** |