diff options
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r-- | drivers/ata/ata_piix.c | 7 |
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 | */ |
666 | static int piix_pata_prereset(struct ata_port *ap, unsigned long deadline) | 666 | static 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 | ||
675 | static void piix_pata_error_handler(struct ata_port *ap) | 676 | static void piix_pata_error_handler(struct ata_port *ap) |