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_jmicron.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_jmicron.c')
-rw-r--r-- | drivers/ata/pata_jmicron.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/pata_jmicron.c b/drivers/ata/pata_jmicron.c index 4d67f238eee2..1619b86b74af 100644 --- a/drivers/ata/pata_jmicron.c +++ b/drivers/ata/pata_jmicron.c | |||
@@ -29,7 +29,7 @@ typedef enum { | |||
29 | 29 | ||
30 | /** | 30 | /** |
31 | * jmicron_pre_reset - check for 40/80 pin | 31 | * jmicron_pre_reset - check for 40/80 pin |
32 | * @ap: Port | 32 | * @link: ATA link |
33 | * @deadline: deadline jiffies for the operation | 33 | * @deadline: deadline jiffies for the operation |
34 | * | 34 | * |
35 | * Perform the PATA port setup we need. | 35 | * Perform the PATA port setup we need. |
@@ -39,9 +39,9 @@ typedef enum { | |||
39 | * and setup here. We assume that has been done by init_one and the | 39 | * and setup here. We assume that has been done by init_one and the |
40 | * BIOS. | 40 | * BIOS. |
41 | */ | 41 | */ |
42 | 42 | static int jmicron_pre_reset(struct ata_link *link, unsigned long deadline) | |
43 | static int jmicron_pre_reset(struct ata_port *ap, unsigned long deadline) | ||
44 | { | 43 | { |
44 | struct ata_port *ap = link->ap; | ||
45 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 45 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
46 | u32 control; | 46 | u32 control; |
47 | u32 control5; | 47 | u32 control5; |
@@ -103,7 +103,7 @@ static int jmicron_pre_reset(struct ata_port *ap, unsigned long deadline) | |||
103 | ap->cbl = ATA_CBL_SATA; | 103 | ap->cbl = ATA_CBL_SATA; |
104 | break; | 104 | break; |
105 | } | 105 | } |
106 | return ata_std_prereset(ap, deadline); | 106 | return ata_std_prereset(link, deadline); |
107 | } | 107 | } |
108 | 108 | ||
109 | /** | 109 | /** |