diff options
Diffstat (limited to 'drivers/ata/pata_ns87410.c')
-rw-r--r-- | drivers/ata/pata_ns87410.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c index 2f5d714ebfc4..65a217727718 100644 --- a/drivers/ata/pata_ns87410.c +++ b/drivers/ata/pata_ns87410.c | |||
@@ -32,14 +32,15 @@ | |||
32 | 32 | ||
33 | /** | 33 | /** |
34 | * ns87410_pre_reset - probe begin | 34 | * ns87410_pre_reset - probe begin |
35 | * @ap: ATA port | 35 | * @link: ATA link |
36 | * @deadline: deadline jiffies for the operation | 36 | * @deadline: deadline jiffies for the operation |
37 | * | 37 | * |
38 | * Check enabled ports | 38 | * Check enabled ports |
39 | */ | 39 | */ |
40 | 40 | ||
41 | static int ns87410_pre_reset(struct ata_port *ap, unsigned long deadline) | 41 | static int ns87410_pre_reset(struct ata_link *link, unsigned long deadline) |
42 | { | 42 | { |
43 | struct ata_port *ap = link->ap; | ||
43 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 44 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
44 | static const struct pci_bits ns87410_enable_bits[] = { | 45 | static const struct pci_bits ns87410_enable_bits[] = { |
45 | { 0x43, 1, 0x08, 0x08 }, | 46 | { 0x43, 1, 0x08, 0x08 }, |
@@ -49,7 +50,7 @@ static int ns87410_pre_reset(struct ata_port *ap, unsigned long deadline) | |||
49 | if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) | 50 | if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) |
50 | return -ENOENT; | 51 | return -ENOENT; |
51 | 52 | ||
52 | return ata_std_prereset(ap, deadline); | 53 | return ata_std_prereset(link, deadline); |
53 | } | 54 | } |
54 | 55 | ||
55 | /** | 56 | /** |