aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_via.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_via.c')
-rw-r--r--drivers/ata/pata_via.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c
index f143db4559e0..b612808a319e 100644
--- a/drivers/ata/pata_via.c
+++ b/drivers/ata/pata_via.c
@@ -187,8 +187,9 @@ static int via_cable_detect(struct ata_port *ap) {
187 return ATA_CBL_PATA40; 187 return ATA_CBL_PATA40;
188} 188}
189 189
190static int via_pre_reset(struct ata_port *ap, unsigned long deadline) 190static int via_pre_reset(struct ata_link *link, unsigned long deadline)
191{ 191{
192 struct ata_port *ap = link->ap;
192 const struct via_isa_bridge *config = ap->host->private_data; 193 const struct via_isa_bridge *config = ap->host->private_data;
193 194
194 if (!(config->flags & VIA_NO_ENABLES)) { 195 if (!(config->flags & VIA_NO_ENABLES)) {
@@ -201,7 +202,7 @@ static int via_pre_reset(struct ata_port *ap, unsigned long deadline)
201 return -ENOENT; 202 return -ENOENT;
202 } 203 }
203 204
204 return ata_std_prereset(ap, deadline); 205 return ata_std_prereset(link, deadline);
205} 206}
206 207
207 208