diff options
Diffstat (limited to 'drivers/ata/pata_sis.c')
-rw-r--r-- | drivers/ata/pata_sis.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c index 2e555168b431..17791e2785f9 100644 --- a/drivers/ata/pata_sis.c +++ b/drivers/ata/pata_sis.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <linux/ata.h> | 34 | #include <linux/ata.h> |
35 | 35 | ||
36 | #define DRV_NAME "pata_sis" | 36 | #define DRV_NAME "pata_sis" |
37 | #define DRV_VERSION "0.4.3" | 37 | #define DRV_VERSION "0.4.4" |
38 | 38 | ||
39 | struct sis_chipset { | 39 | struct sis_chipset { |
40 | u16 device; /* PCI host ID */ | 40 | u16 device; /* PCI host ID */ |
@@ -74,11 +74,9 @@ static int sis_133_pre_reset(struct ata_port *ap) | |||
74 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); | 74 | struct pci_dev *pdev = to_pci_dev(ap->host->dev); |
75 | u16 tmp; | 75 | u16 tmp; |
76 | 76 | ||
77 | if (!pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no])) { | 77 | if (!pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no])) |
78 | ata_port_disable(ap); | 78 | return -ENOENT; |
79 | printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id); | 79 | |
80 | return 0; | ||
81 | } | ||
82 | /* The top bit of this register is the cable detect bit */ | 80 | /* The top bit of this register is the cable detect bit */ |
83 | pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp); | 81 | pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp); |
84 | if (tmp & 0x8000) | 82 | if (tmp & 0x8000) |
@@ -575,8 +573,6 @@ static const struct ata_port_operations sis_133_ops = { | |||
575 | .qc_issue = ata_qc_issue_prot, | 573 | .qc_issue = ata_qc_issue_prot, |
576 | .data_xfer = ata_pio_data_xfer, | 574 | .data_xfer = ata_pio_data_xfer, |
577 | 575 | ||
578 | .eng_timeout = ata_eng_timeout, | ||
579 | |||
580 | .irq_handler = ata_interrupt, | 576 | .irq_handler = ata_interrupt, |
581 | .irq_clear = ata_bmdma_irq_clear, | 577 | .irq_clear = ata_bmdma_irq_clear, |
582 | 578 | ||
@@ -610,8 +606,6 @@ static const struct ata_port_operations sis_133_early_ops = { | |||
610 | .qc_issue = ata_qc_issue_prot, | 606 | .qc_issue = ata_qc_issue_prot, |
611 | .data_xfer = ata_pio_data_xfer, | 607 | .data_xfer = ata_pio_data_xfer, |
612 | 608 | ||
613 | .eng_timeout = ata_eng_timeout, | ||
614 | |||
615 | .irq_handler = ata_interrupt, | 609 | .irq_handler = ata_interrupt, |
616 | .irq_clear = ata_bmdma_irq_clear, | 610 | .irq_clear = ata_bmdma_irq_clear, |
617 | 611 | ||
@@ -646,8 +640,6 @@ static const struct ata_port_operations sis_100_ops = { | |||
646 | .qc_issue = ata_qc_issue_prot, | 640 | .qc_issue = ata_qc_issue_prot, |
647 | .data_xfer = ata_pio_data_xfer, | 641 | .data_xfer = ata_pio_data_xfer, |
648 | 642 | ||
649 | .eng_timeout = ata_eng_timeout, | ||
650 | |||
651 | .irq_handler = ata_interrupt, | 643 | .irq_handler = ata_interrupt, |
652 | .irq_clear = ata_bmdma_irq_clear, | 644 | .irq_clear = ata_bmdma_irq_clear, |
653 | 645 | ||
@@ -681,8 +673,6 @@ static const struct ata_port_operations sis_66_ops = { | |||
681 | .qc_issue = ata_qc_issue_prot, | 673 | .qc_issue = ata_qc_issue_prot, |
682 | .data_xfer = ata_pio_data_xfer, | 674 | .data_xfer = ata_pio_data_xfer, |
683 | 675 | ||
684 | .eng_timeout = ata_eng_timeout, | ||
685 | |||
686 | .irq_handler = ata_interrupt, | 676 | .irq_handler = ata_interrupt, |
687 | .irq_clear = ata_bmdma_irq_clear, | 677 | .irq_clear = ata_bmdma_irq_clear, |
688 | 678 | ||
@@ -716,8 +706,6 @@ static const struct ata_port_operations sis_old_ops = { | |||
716 | .qc_issue = ata_qc_issue_prot, | 706 | .qc_issue = ata_qc_issue_prot, |
717 | .data_xfer = ata_pio_data_xfer, | 707 | .data_xfer = ata_pio_data_xfer, |
718 | 708 | ||
719 | .eng_timeout = ata_eng_timeout, | ||
720 | |||
721 | .irq_handler = ata_interrupt, | 709 | .irq_handler = ata_interrupt, |
722 | .irq_clear = ata_bmdma_irq_clear, | 710 | .irq_clear = ata_bmdma_irq_clear, |
723 | 711 | ||