diff options
Diffstat (limited to 'drivers/ata/pata_artop.c')
-rw-r--r-- | drivers/ata/pata_artop.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c index d6ef3bf1bac7..c4ccb75a4f1d 100644 --- a/drivers/ata/pata_artop.c +++ b/drivers/ata/pata_artop.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/ata.h> | 28 | #include <linux/ata.h> |
29 | 29 | ||
30 | #define DRV_NAME "pata_artop" | 30 | #define DRV_NAME "pata_artop" |
31 | #define DRV_VERSION "0.4.1" | 31 | #define DRV_VERSION "0.4.2" |
32 | 32 | ||
33 | /* | 33 | /* |
34 | * The ARTOP has 33 Mhz and "over clocked" timing tables. Until we | 34 | * The ARTOP has 33 Mhz and "over clocked" timing tables. Until we |
@@ -47,11 +47,9 @@ static int artop6210_pre_reset(struct ata_port *ap) | |||
47 | { 0x4AU, 1U, 0x04UL, 0x04UL }, /* port 1 */ | 47 | { 0x4AU, 1U, 0x04UL, 0x04UL }, /* port 1 */ |
48 | }; | 48 | }; |
49 | 49 | ||
50 | if (!pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no])) { | 50 | if (!pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no])) |
51 | ata_port_disable(ap); | 51 | return -ENOENT; |
52 | printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id); | 52 | |
53 | return 0; | ||
54 | } | ||
55 | ap->cbl = ATA_CBL_PATA40; | 53 | ap->cbl = ATA_CBL_PATA40; |
56 | return ata_std_prereset(ap); | 54 | return ata_std_prereset(ap); |
57 | } | 55 | } |
@@ -90,11 +88,9 @@ static int artop6260_pre_reset(struct ata_port *ap) | |||
90 | u8 tmp; | 88 | u8 tmp; |
91 | 89 | ||
92 | /* Odd numbered device ids are the units with enable bits (the -R cards) */ | 90 | /* Odd numbered device ids are the units with enable bits (the -R cards) */ |
93 | if (pdev->device % 1 && !pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no])) { | 91 | if (pdev->device % 1 && !pci_test_config_bits(pdev, &artop_enable_bits[ap->port_no])) |
94 | ata_port_disable(ap); | 92 | return -ENOENT; |
95 | printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id); | 93 | |
96 | return 0; | ||
97 | } | ||
98 | pci_read_config_byte(pdev, 0x49, &tmp); | 94 | pci_read_config_byte(pdev, 0x49, &tmp); |
99 | if (tmp & (1 >> ap->port_no)) | 95 | if (tmp & (1 >> ap->port_no)) |
100 | ap->cbl = ATA_CBL_PATA40; | 96 | ap->cbl = ATA_CBL_PATA40; |
@@ -344,7 +340,7 @@ static const struct ata_port_operations artop6210_ops = { | |||
344 | .bmdma_status = ata_bmdma_status, | 340 | .bmdma_status = ata_bmdma_status, |
345 | .qc_prep = ata_qc_prep, | 341 | .qc_prep = ata_qc_prep, |
346 | .qc_issue = ata_qc_issue_prot, | 342 | .qc_issue = ata_qc_issue_prot, |
347 | .eng_timeout = ata_eng_timeout, | 343 | |
348 | .data_xfer = ata_pio_data_xfer, | 344 | .data_xfer = ata_pio_data_xfer, |
349 | 345 | ||
350 | .irq_handler = ata_interrupt, | 346 | .irq_handler = ata_interrupt, |
@@ -379,8 +375,6 @@ static const struct ata_port_operations artop6260_ops = { | |||
379 | .qc_issue = ata_qc_issue_prot, | 375 | .qc_issue = ata_qc_issue_prot, |
380 | .data_xfer = ata_pio_data_xfer, | 376 | .data_xfer = ata_pio_data_xfer, |
381 | 377 | ||
382 | .eng_timeout = ata_eng_timeout, | ||
383 | |||
384 | .irq_handler = ata_interrupt, | 378 | .irq_handler = ata_interrupt, |
385 | .irq_clear = ata_bmdma_irq_clear, | 379 | .irq_clear = ata_bmdma_irq_clear, |
386 | 380 | ||