diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 17:41:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 17:41:00 -0400 |
commit | ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc (patch) | |
tree | 32d5f592be4222f0d6a8a05fcbc1c2eaed729499 /drivers/ata/ata_piix.c | |
parent | 1f9bd4c96a8e918a86e083706e0d3eb7f030b9a3 (diff) | |
parent | bda3028813bd07f34f30288a492fbf6f7b8712dd (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
[libata] Don't use old-EH ->eng_timeout() hook when not needed
[libata] sata_mv: fix oops by filling in missing hook
[libata] One more s/15/ATA_SECONDARY_IRQ/ substitution
[libata] pata_serverworks: fill in ->irq_clear hook
[PATCH] pata_serverworks: correct PCI ID in cable detection table
[PATCH] libata-sff: use our IRQ defines
[PATCH] libata-eh: Remove layering violation and duplication when handling absent ports
[PATCH] libata: tighten rules for legacy dependancies
[PATCH] libata: refuse to register IRQless ports
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r-- | drivers/ata/ata_piix.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index ffa111eea9da..5719704eb0ee 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c | |||
@@ -643,11 +643,9 @@ static int piix_pata_prereset(struct ata_port *ap) | |||
643 | { | 643 | { |
644 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 644 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
645 | 645 | ||
646 | if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no])) { | 646 | if (!pci_test_config_bits(pdev, &piix_enable_bits[ap->port_no])) |
647 | ata_port_printk(ap, KERN_INFO, "port disabled. ignoring.\n"); | 647 | return -ENOENT; |
648 | ap->eh_context.i.action &= ~ATA_EH_RESET_MASK; | 648 | |
649 | return 0; | ||
650 | } | ||
651 | ap->cbl = ATA_CBL_PATA40; | 649 | ap->cbl = ATA_CBL_PATA40; |
652 | return ata_std_prereset(ap); | 650 | return ata_std_prereset(ap); |
653 | } | 651 | } |