aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ata_piix.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-08-06 05:36:23 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-12 14:55:31 -0400
commitcc0680a580b5be81a1ca321b58f8e9b80b5c1052 (patch)
tree57454cdfdc9890f4e8d9f532e9cd240c7361951f /drivers/ata/ata_piix.c
parent955e57dfde4ff75e4d7329ac7a3d645b16015309 (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/ata_piix.c')
-rw-r--r--drivers/ata/ata_piix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index 92c2d5082bef..03fe493026eb 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -657,19 +657,20 @@ static int ich_pata_cable_detect(struct ata_port *ap)
657 657
658/** 658/**
659 * piix_pata_prereset - prereset for PATA host controller 659 * piix_pata_prereset - prereset for PATA host controller
660 * @ap: Target port 660 * @link: Target link
661 * @deadline: deadline jiffies for the operation 661 * @deadline: deadline jiffies for the operation
662 * 662 *
663 * LOCKING: 663 * LOCKING:
664 * None (inherited from caller). 664 * None (inherited from caller).
665 */ 665 */
666static int piix_pata_prereset(struct ata_port *ap, unsigned long deadline) 666static int piix_pata_prereset(struct ata_link *link, unsigned long deadline)
667{ 667{
668 struct ata_port *ap = link->ap;
668 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 669 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
669 670
670 if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no])) 671 if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no]))
671 return -ENOENT; 672 return -ENOENT;
672 return ata_std_prereset(ap, deadline); 673 return ata_std_prereset(link, deadline);
673} 674}
674 675
675static void piix_pata_error_handler(struct ata_port *ap) 676static void piix_pata_error_handler(struct ata_port *ap)