diff options
Diffstat (limited to 'drivers/ide/pci/pdc202xx_old.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_old.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c index cb6d2a00c514..799557c25eef 100644 --- a/drivers/ide/pci/pdc202xx_old.c +++ b/drivers/ide/pci/pdc202xx_old.c | |||
@@ -168,7 +168,7 @@ static void pdc202xx_dma_start(ide_drive_t *drive) | |||
168 | { | 168 | { |
169 | if (drive->current_speed > XFER_UDMA_2) | 169 | if (drive->current_speed > XFER_UDMA_2) |
170 | pdc_old_enable_66MHz_clock(drive->hwif); | 170 | pdc_old_enable_66MHz_clock(drive->hwif); |
171 | if (drive->media != ide_disk || drive->addressing == 1) { | 171 | if (drive->media != ide_disk || (drive->dev_flags & IDE_DFLAG_LBA48)) { |
172 | struct request *rq = HWGROUP(drive)->rq; | 172 | struct request *rq = HWGROUP(drive)->rq; |
173 | ide_hwif_t *hwif = HWIF(drive); | 173 | ide_hwif_t *hwif = HWIF(drive); |
174 | unsigned long high_16 = hwif->extra_base - 16; | 174 | unsigned long high_16 = hwif->extra_base - 16; |
@@ -188,7 +188,7 @@ static void pdc202xx_dma_start(ide_drive_t *drive) | |||
188 | 188 | ||
189 | static int pdc202xx_dma_end(ide_drive_t *drive) | 189 | static int pdc202xx_dma_end(ide_drive_t *drive) |
190 | { | 190 | { |
191 | if (drive->media != ide_disk || drive->addressing == 1) { | 191 | if (drive->media != ide_disk || (drive->dev_flags & IDE_DFLAG_LBA48)) { |
192 | ide_hwif_t *hwif = HWIF(drive); | 192 | ide_hwif_t *hwif = HWIF(drive); |
193 | unsigned long high_16 = hwif->extra_base - 16; | 193 | unsigned long high_16 = hwif->extra_base - 16; |
194 | unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20); | 194 | unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20); |
@@ -200,7 +200,7 @@ static int pdc202xx_dma_end(ide_drive_t *drive) | |||
200 | } | 200 | } |
201 | if (drive->current_speed > XFER_UDMA_2) | 201 | if (drive->current_speed > XFER_UDMA_2) |
202 | pdc_old_disable_66MHz_clock(drive->hwif); | 202 | pdc_old_disable_66MHz_clock(drive->hwif); |
203 | return __ide_dma_end(drive); | 203 | return ide_dma_end(drive); |
204 | } | 204 | } |
205 | 205 | ||
206 | static int pdc202xx_dma_test_irq(ide_drive_t *drive) | 206 | static int pdc202xx_dma_test_irq(ide_drive_t *drive) |
@@ -333,7 +333,7 @@ static const struct ide_dma_ops pdc20246_dma_ops = { | |||
333 | .dma_setup = ide_dma_setup, | 333 | .dma_setup = ide_dma_setup, |
334 | .dma_exec_cmd = ide_dma_exec_cmd, | 334 | .dma_exec_cmd = ide_dma_exec_cmd, |
335 | .dma_start = ide_dma_start, | 335 | .dma_start = ide_dma_start, |
336 | .dma_end = __ide_dma_end, | 336 | .dma_end = ide_dma_end, |
337 | .dma_test_irq = pdc202xx_dma_test_irq, | 337 | .dma_test_irq = pdc202xx_dma_test_irq, |
338 | .dma_lost_irq = pdc202xx_dma_lost_irq, | 338 | .dma_lost_irq = pdc202xx_dma_lost_irq, |
339 | .dma_timeout = pdc202xx_dma_timeout, | 339 | .dma_timeout = pdc202xx_dma_timeout, |
@@ -426,7 +426,7 @@ static const struct pci_device_id pdc202xx_pci_tbl[] = { | |||
426 | }; | 426 | }; |
427 | MODULE_DEVICE_TABLE(pci, pdc202xx_pci_tbl); | 427 | MODULE_DEVICE_TABLE(pci, pdc202xx_pci_tbl); |
428 | 428 | ||
429 | static struct pci_driver driver = { | 429 | static struct pci_driver pdc202xx_pci_driver = { |
430 | .name = "Promise_Old_IDE", | 430 | .name = "Promise_Old_IDE", |
431 | .id_table = pdc202xx_pci_tbl, | 431 | .id_table = pdc202xx_pci_tbl, |
432 | .probe = pdc202xx_init_one, | 432 | .probe = pdc202xx_init_one, |
@@ -437,12 +437,12 @@ static struct pci_driver driver = { | |||
437 | 437 | ||
438 | static int __init pdc202xx_ide_init(void) | 438 | static int __init pdc202xx_ide_init(void) |
439 | { | 439 | { |
440 | return ide_pci_register_driver(&driver); | 440 | return ide_pci_register_driver(&pdc202xx_pci_driver); |
441 | } | 441 | } |
442 | 442 | ||
443 | static void __exit pdc202xx_ide_exit(void) | 443 | static void __exit pdc202xx_ide_exit(void) |
444 | { | 444 | { |
445 | pci_unregister_driver(&driver); | 445 | pci_unregister_driver(&pdc202xx_pci_driver); |
446 | } | 446 | } |
447 | 447 | ||
448 | module_init(pdc202xx_ide_init); | 448 | module_init(pdc202xx_ide_init); |