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 | cc0680a580b5be81a1ca321b58f8e9b80b5c1052 (patch) | |
tree | 57454cdfdc9890f4e8d9f532e9cd240c7361951f /drivers/ata/sata_via.c | |
parent | 955e57dfde4ff75e4d7329ac7a3d645b16015309 (diff) |
libata-link: linkify reset
Make reset methods and related functions deal with ata_link instead of
ata_port.
* ata_do_reset()
* ata_eh_reset()
* all prereset/reset/postreset methods and related functions
This patch introduces no behavior change.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_via.c')
-rw-r--r-- | drivers/ata/sata_via.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index 78a6833af713..690280660b81 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c | |||
@@ -276,7 +276,7 @@ static void svia_noop_freeze(struct ata_port *ap) | |||
276 | 276 | ||
277 | /** | 277 | /** |
278 | * vt6420_prereset - prereset for vt6420 | 278 | * vt6420_prereset - prereset for vt6420 |
279 | * @ap: target ATA port | 279 | * @link: target ATA link |
280 | * @deadline: deadline jiffies for the operation | 280 | * @deadline: deadline jiffies for the operation |
281 | * | 281 | * |
282 | * SCR registers on vt6420 are pieces of shit and may hang the | 282 | * SCR registers on vt6420 are pieces of shit and may hang the |
@@ -294,8 +294,9 @@ static void svia_noop_freeze(struct ata_port *ap) | |||
294 | * RETURNS: | 294 | * RETURNS: |
295 | * 0 on success, -errno otherwise. | 295 | * 0 on success, -errno otherwise. |
296 | */ | 296 | */ |
297 | static int vt6420_prereset(struct ata_port *ap, unsigned long deadline) | 297 | static int vt6420_prereset(struct ata_link *link, unsigned long deadline) |
298 | { | 298 | { |
299 | struct ata_port *ap = link->ap; | ||
299 | struct ata_eh_context *ehc = &ap->link.eh_context; | 300 | struct ata_eh_context *ehc = &ap->link.eh_context; |
300 | unsigned long timeout = jiffies + (HZ * 5); | 301 | unsigned long timeout = jiffies + (HZ * 5); |
301 | u32 sstatus, scontrol; | 302 | u32 sstatus, scontrol; |