diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 14:41:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 14:41:00 -0700 |
commit | ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc (patch) | |
tree | 32d5f592be4222f0d6a8a05fcbc1c2eaed729499 /drivers/ata/pata_opti.c | |
parent | 1f9bd4c96a8e918a86e083706e0d3eb7f030b9a3 (diff) | |
parent | bda3028813bd07f34f30288a492fbf6f7b8712dd (diff) | |
download | kernel_goldelico_gta04-ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc.zip kernel_goldelico_gta04-ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc.tar.gz kernel_goldelico_gta04-ac7f6b5e44cb0982b98c31fa33298ba73fb5dcfc.tar.bz2 |
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/pata_opti.c')
-rw-r--r-- | drivers/ata/pata_opti.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/ata/pata_opti.c b/drivers/ata/pata_opti.c index c3d0132..57fe21f 100644 --- a/drivers/ata/pata_opti.c +++ b/drivers/ata/pata_opti.c @@ -34,7 +34,7 @@ #include <linux/libata.h> #define DRV_NAME "pata_opti" -#define DRV_VERSION "0.2.4" +#define DRV_VERSION "0.2.5" enum { READ_REG = 0, /* index of Read cycle timing register */ @@ -59,11 +59,9 @@ static int opti_pre_reset(struct ata_port *ap) { 0x40, 1, 0x08, 0x00 } }; - if (!pci_test_config_bits(pdev, &opti_enable_bits[ap->port_no])) { - ata_port_disable(ap); - printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id); - return 0; - } + if (!pci_test_config_bits(pdev, &opti_enable_bits[ap->port_no])) + return -ENOENT; + ap->cbl = ATA_CBL_PATA40; return ata_std_prereset(ap); } @@ -229,7 +227,7 @@ static struct ata_port_operations opti_port_ops = { .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot, - .eng_timeout = ata_eng_timeout, + .data_xfer = ata_pio_data_xfer, .irq_handler = ata_interrupt, |