diff options
Diffstat (limited to 'drivers/ata/pdc_adma.c')
-rw-r--r-- | drivers/ata/pdc_adma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index 064a3b505609..304c19b9b0f2 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c | |||
@@ -297,15 +297,16 @@ static void adma_thaw(struct ata_port *ap) | |||
297 | adma_reinit_engine(ap); | 297 | adma_reinit_engine(ap); |
298 | } | 298 | } |
299 | 299 | ||
300 | static int adma_prereset(struct ata_port *ap, unsigned long deadline) | 300 | static int adma_prereset(struct ata_link *link, unsigned long deadline) |
301 | { | 301 | { |
302 | struct ata_port *ap = link->ap; | ||
302 | struct adma_port_priv *pp = ap->private_data; | 303 | struct adma_port_priv *pp = ap->private_data; |
303 | 304 | ||
304 | if (pp->state != adma_state_idle) /* healthy paranoia */ | 305 | if (pp->state != adma_state_idle) /* healthy paranoia */ |
305 | pp->state = adma_state_mmio; | 306 | pp->state = adma_state_mmio; |
306 | adma_reinit_engine(ap); | 307 | adma_reinit_engine(ap); |
307 | 308 | ||
308 | return ata_std_prereset(ap, deadline); | 309 | return ata_std_prereset(link, deadline); |
309 | } | 310 | } |
310 | 311 | ||
311 | static void adma_error_handler(struct ata_port *ap) | 312 | static void adma_error_handler(struct ata_port *ap) |