diff options
Diffstat (limited to 'drivers/ide/pci/hpt366.c')
-rw-r--r-- | drivers/ide/pci/hpt366.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c index a194022b6a61..9cf171cb9376 100644 --- a/drivers/ide/pci/hpt366.c +++ b/drivers/ide/pci/hpt366.c | |||
@@ -835,7 +835,7 @@ static int hpt370_dma_end(ide_drive_t *drive) | |||
835 | if (dma_stat & 0x01) | 835 | if (dma_stat & 0x01) |
836 | hpt370_irq_timeout(drive); | 836 | hpt370_irq_timeout(drive); |
837 | } | 837 | } |
838 | return __ide_dma_end(drive); | 838 | return ide_dma_end(drive); |
839 | } | 839 | } |
840 | 840 | ||
841 | static void hpt370_dma_timeout(ide_drive_t *drive) | 841 | static void hpt370_dma_timeout(ide_drive_t *drive) |
@@ -863,9 +863,6 @@ static int hpt374_dma_test_irq(ide_drive_t *drive) | |||
863 | if (dma_stat & 4) | 863 | if (dma_stat & 4) |
864 | return 1; | 864 | return 1; |
865 | 865 | ||
866 | if (!drive->waiting_for_dma) | ||
867 | printk(KERN_WARNING "%s: (%s) called while not waiting\n", | ||
868 | drive->name, __func__); | ||
869 | return 0; | 866 | return 0; |
870 | } | 867 | } |
871 | 868 | ||
@@ -880,7 +877,7 @@ static int hpt374_dma_end(ide_drive_t *drive) | |||
880 | pci_read_config_byte(dev, mcr_addr, &mcr); | 877 | pci_read_config_byte(dev, mcr_addr, &mcr); |
881 | if (bwsr & mask) | 878 | if (bwsr & mask) |
882 | pci_write_config_byte(dev, mcr_addr, mcr | 0x30); | 879 | pci_write_config_byte(dev, mcr_addr, mcr | 0x30); |
883 | return __ide_dma_end(drive); | 880 | return ide_dma_end(drive); |
884 | } | 881 | } |
885 | 882 | ||
886 | /** | 883 | /** |
@@ -1456,7 +1453,7 @@ static const struct ide_dma_ops hpt36x_dma_ops = { | |||
1456 | .dma_setup = ide_dma_setup, | 1453 | .dma_setup = ide_dma_setup, |
1457 | .dma_exec_cmd = ide_dma_exec_cmd, | 1454 | .dma_exec_cmd = ide_dma_exec_cmd, |
1458 | .dma_start = ide_dma_start, | 1455 | .dma_start = ide_dma_start, |
1459 | .dma_end = __ide_dma_end, | 1456 | .dma_end = ide_dma_end, |
1460 | .dma_test_irq = ide_dma_test_irq, | 1457 | .dma_test_irq = ide_dma_test_irq, |
1461 | .dma_lost_irq = hpt366_dma_lost_irq, | 1458 | .dma_lost_irq = hpt366_dma_lost_irq, |
1462 | .dma_timeout = ide_dma_timeout, | 1459 | .dma_timeout = ide_dma_timeout, |
@@ -1622,7 +1619,7 @@ static const struct pci_device_id hpt366_pci_tbl[] __devinitconst = { | |||
1622 | }; | 1619 | }; |
1623 | MODULE_DEVICE_TABLE(pci, hpt366_pci_tbl); | 1620 | MODULE_DEVICE_TABLE(pci, hpt366_pci_tbl); |
1624 | 1621 | ||
1625 | static struct pci_driver driver = { | 1622 | static struct pci_driver hpt366_pci_driver = { |
1626 | .name = "HPT366_IDE", | 1623 | .name = "HPT366_IDE", |
1627 | .id_table = hpt366_pci_tbl, | 1624 | .id_table = hpt366_pci_tbl, |
1628 | .probe = hpt366_init_one, | 1625 | .probe = hpt366_init_one, |
@@ -1633,12 +1630,12 @@ static struct pci_driver driver = { | |||
1633 | 1630 | ||
1634 | static int __init hpt366_ide_init(void) | 1631 | static int __init hpt366_ide_init(void) |
1635 | { | 1632 | { |
1636 | return ide_pci_register_driver(&driver); | 1633 | return ide_pci_register_driver(&hpt366_pci_driver); |
1637 | } | 1634 | } |
1638 | 1635 | ||
1639 | static void __exit hpt366_ide_exit(void) | 1636 | static void __exit hpt366_ide_exit(void) |
1640 | { | 1637 | { |
1641 | pci_unregister_driver(&driver); | 1638 | pci_unregister_driver(&hpt366_pci_driver); |
1642 | } | 1639 | } |
1643 | 1640 | ||
1644 | module_init(hpt366_ide_init); | 1641 | module_init(hpt366_ide_init); |