diff options
author | Tejun Heo <htejun@gmail.com> | 2007-08-06 05:36:23 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:31 -0400 |
commit | 0260731f0187840e272bfa10d3ba0f3e417976f5 (patch) | |
tree | d39219275e89ce782f3151b5ac47726957a81e24 /drivers/ata/pdc_adma.c | |
parent | cc0680a580b5be81a1ca321b58f8e9b80b5c1052 (diff) |
libata-link: linkify config/EH related functions
Make the following functions deal with ata_link instead of ata_port.
* ata_set_mode()
* ata_eh_autopsy() and related functions
* ata_eh_report() and related functions
* suspend/resume related functions
* ata_eh_recover() and related functions
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
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) |