diff options
Diffstat (limited to 'drivers/ata/pata_marvell.c')
-rw-r--r-- | drivers/ata/pata_marvell.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/ata/pata_marvell.c b/drivers/ata/pata_marvell.c index b45506f1ef73..9afc8a32b226 100644 --- a/drivers/ata/pata_marvell.c +++ b/drivers/ata/pata_marvell.c | |||
@@ -24,14 +24,15 @@ | |||
24 | 24 | ||
25 | /** | 25 | /** |
26 | * marvell_pre_reset - check for 40/80 pin | 26 | * marvell_pre_reset - check for 40/80 pin |
27 | * @ap: Port | 27 | * @link: link |
28 | * @deadline: deadline jiffies for the operation | 28 | * @deadline: deadline jiffies for the operation |
29 | * | 29 | * |
30 | * Perform the PATA port setup we need. | 30 | * Perform the PATA port setup we need. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | static int marvell_pre_reset(struct ata_port *ap, unsigned long deadline) | 33 | static int marvell_pre_reset(struct ata_link *link, unsigned long deadline) |
34 | { | 34 | { |
35 | struct ata_port *ap = link->ap; | ||
35 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 36 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
36 | u32 devices; | 37 | u32 devices; |
37 | void __iomem *barp; | 38 | void __iomem *barp; |
@@ -54,7 +55,7 @@ static int marvell_pre_reset(struct ata_port *ap, unsigned long deadline) | |||
54 | (!(devices & 0x10))) /* PATA enable ? */ | 55 | (!(devices & 0x10))) /* PATA enable ? */ |
55 | return -ENOENT; | 56 | return -ENOENT; |
56 | 57 | ||
57 | return ata_std_prereset(ap, deadline); | 58 | return ata_std_prereset(link, deadline); |
58 | } | 59 | } |
59 | 60 | ||
60 | static int marvell_cable_detect(struct ata_port *ap) | 61 | static int marvell_cable_detect(struct ata_port *ap) |
@@ -110,8 +111,6 @@ static struct scsi_host_template marvell_sht = { | |||
110 | }; | 111 | }; |
111 | 112 | ||
112 | static const struct ata_port_operations marvell_ops = { | 113 | static const struct ata_port_operations marvell_ops = { |
113 | .port_disable = ata_port_disable, | ||
114 | |||
115 | /* Task file is PCI ATA format, use helpers */ | 114 | /* Task file is PCI ATA format, use helpers */ |
116 | .tf_load = ata_tf_load, | 115 | .tf_load = ata_tf_load, |
117 | .tf_read = ata_tf_read, | 116 | .tf_read = ata_tf_read, |
@@ -138,10 +137,9 @@ static const struct ata_port_operations marvell_ops = { | |||
138 | .irq_handler = ata_interrupt, | 137 | .irq_handler = ata_interrupt, |
139 | .irq_clear = ata_bmdma_irq_clear, | 138 | .irq_clear = ata_bmdma_irq_clear, |
140 | .irq_on = ata_irq_on, | 139 | .irq_on = ata_irq_on, |
141 | .irq_ack = ata_irq_ack, | ||
142 | 140 | ||
143 | /* Generic PATA PCI ATA helpers */ | 141 | /* Generic PATA PCI ATA helpers */ |
144 | .port_start = ata_port_start, | 142 | .port_start = ata_sff_port_start, |
145 | }; | 143 | }; |
146 | 144 | ||
147 | 145 | ||