diff options
Diffstat (limited to 'drivers/ata/pata_sil680.c')
-rw-r--r-- | drivers/ata/pata_sil680.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index 40395804a66f..2eb75cd74a96 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -95,15 +95,16 @@ static int sil680_cable_detect(struct ata_port *ap) { | |||
95 | 95 | ||
96 | /** | 96 | /** |
97 | * sil680_bus_reset - reset the SIL680 bus | 97 | * sil680_bus_reset - reset the SIL680 bus |
98 | * @ap: ATA port to reset | 98 | * @link: ATA link to reset |
99 | * @deadline: deadline jiffies for the operation | 99 | * @deadline: deadline jiffies for the operation |
100 | * | 100 | * |
101 | * Perform the SIL680 housekeeping when doing an ATA bus reset | 101 | * Perform the SIL680 housekeeping when doing an ATA bus reset |
102 | */ | 102 | */ |
103 | 103 | ||
104 | static int sil680_bus_reset(struct ata_port *ap,unsigned int *classes, | 104 | static int sil680_bus_reset(struct ata_link *link, unsigned int *classes, |
105 | unsigned long deadline) | 105 | unsigned long deadline) |
106 | { | 106 | { |
107 | struct ata_port *ap = link->ap; | ||
107 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 108 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
108 | unsigned long addr = sil680_selreg(ap, 0); | 109 | unsigned long addr = sil680_selreg(ap, 0); |
109 | u8 reset; | 110 | u8 reset; |
@@ -112,7 +113,7 @@ static int sil680_bus_reset(struct ata_port *ap,unsigned int *classes, | |||
112 | pci_write_config_byte(pdev, addr, reset | 0x03); | 113 | pci_write_config_byte(pdev, addr, reset | 0x03); |
113 | udelay(25); | 114 | udelay(25); |
114 | pci_write_config_byte(pdev, addr, reset); | 115 | pci_write_config_byte(pdev, addr, reset); |
115 | return ata_std_softreset(ap, classes, deadline); | 116 | return ata_std_softreset(link, classes, deadline); |
116 | } | 117 | } |
117 | 118 | ||
118 | static void sil680_error_handler(struct ata_port *ap) | 119 | static void sil680_error_handler(struct ata_port *ap) |
@@ -237,7 +238,6 @@ static struct scsi_host_template sil680_sht = { | |||
237 | }; | 238 | }; |
238 | 239 | ||
239 | static struct ata_port_operations sil680_port_ops = { | 240 | static struct ata_port_operations sil680_port_ops = { |
240 | .port_disable = ata_port_disable, | ||
241 | .set_piomode = sil680_set_piomode, | 241 | .set_piomode = sil680_set_piomode, |
242 | .set_dmamode = sil680_set_dmamode, | 242 | .set_dmamode = sil680_set_dmamode, |
243 | .mode_filter = ata_pci_default_filter, | 243 | .mode_filter = ata_pci_default_filter, |
@@ -266,9 +266,8 @@ static struct ata_port_operations sil680_port_ops = { | |||
266 | .irq_handler = ata_interrupt, | 266 | .irq_handler = ata_interrupt, |
267 | .irq_clear = ata_bmdma_irq_clear, | 267 | .irq_clear = ata_bmdma_irq_clear, |
268 | .irq_on = ata_irq_on, | 268 | .irq_on = ata_irq_on, |
269 | .irq_ack = ata_irq_ack, | ||
270 | 269 | ||
271 | .port_start = ata_port_start, | 270 | .port_start = ata_sff_port_start, |
272 | }; | 271 | }; |
273 | 272 | ||
274 | /** | 273 | /** |