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/pata_pdc2027x.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/pata_pdc2027x.c')
-rw-r--r-- | drivers/ata/pata_pdc2027x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index 83c90cabc7ff..ba39efbe5405 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -300,7 +300,7 @@ static inline int pdc2027x_port_enabled(struct ata_port *ap) | |||
300 | 300 | ||
301 | /** | 301 | /** |
302 | * pdc2027x_prereset - prereset for PATA host controller | 302 | * pdc2027x_prereset - prereset for PATA host controller |
303 | * @ap: Target port | 303 | * @link: Target link |
304 | * @deadline: deadline jiffies for the operation | 304 | * @deadline: deadline jiffies for the operation |
305 | * | 305 | * |
306 | * Probeinit including cable detection. | 306 | * Probeinit including cable detection. |
@@ -309,12 +309,12 @@ static inline int pdc2027x_port_enabled(struct ata_port *ap) | |||
309 | * None (inherited from caller). | 309 | * None (inherited from caller). |
310 | */ | 310 | */ |
311 | 311 | ||
312 | static int pdc2027x_prereset(struct ata_port *ap, unsigned long deadline) | 312 | static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline) |
313 | { | 313 | { |
314 | /* Check whether port enabled */ | 314 | /* Check whether port enabled */ |
315 | if (!pdc2027x_port_enabled(ap)) | 315 | if (!pdc2027x_port_enabled(link->ap)) |
316 | return -ENOENT; | 316 | return -ENOENT; |
317 | return ata_std_prereset(ap, deadline); | 317 | return ata_std_prereset(link, deadline); |
318 | } | 318 | } |
319 | 319 | ||
320 | /** | 320 | /** |