diff options
Diffstat (limited to 'drivers/ata/pata_it8213.c')
| -rw-r--r-- | drivers/ata/pata_it8213.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ata/pata_it8213.c b/drivers/ata/pata_it8213.c index 011306ef8334..17bf9f3ed013 100644 --- a/drivers/ata/pata_it8213.c +++ b/drivers/ata/pata_it8213.c | |||
| @@ -24,12 +24,13 @@ | |||
| 24 | /** | 24 | /** |
| 25 | * it8213_pre_reset - check for 40/80 pin | 25 | * it8213_pre_reset - check for 40/80 pin |
| 26 | * @ap: Port | 26 | * @ap: Port |
| 27 | * @deadline: deadline jiffies for the operation | ||
| 27 | * | 28 | * |
| 28 | * Filter out ports by the enable bits before doing the normal reset | 29 | * Filter out ports by the enable bits before doing the normal reset |
| 29 | * and probe. | 30 | * and probe. |
| 30 | */ | 31 | */ |
| 31 | 32 | ||
| 32 | static int it8213_pre_reset(struct ata_port *ap) | 33 | static int it8213_pre_reset(struct ata_port *ap, unsigned long deadline) |
| 33 | { | 34 | { |
| 34 | static const struct pci_bits it8213_enable_bits[] = { | 35 | static const struct pci_bits it8213_enable_bits[] = { |
| 35 | { 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */ | 36 | { 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */ |
| @@ -37,7 +38,8 @@ static int it8213_pre_reset(struct ata_port *ap) | |||
| 37 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 38 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
| 38 | if (!pci_test_config_bits(pdev, &it8213_enable_bits[ap->port_no])) | 39 | if (!pci_test_config_bits(pdev, &it8213_enable_bits[ap->port_no])) |
| 39 | return -ENOENT; | 40 | return -ENOENT; |
| 40 | return ata_std_prereset(ap); | 41 | |
| 42 | return ata_std_prereset(ap, deadline); | ||
| 41 | } | 43 | } |
| 42 | 44 | ||
| 43 | /** | 45 | /** |
