Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ide: make ide_hwif_t.ide_dma_{host_off,off_quietly} void (v2)

* since ide_hwif_t.ide_dma_{host_off,off_quietly} always return '0'
make these functions void and while at it drop "ide_" prefix
* fix comment for __ide_dma_off_quietly()
* make __ide_dma_{host_off,off_quietly,off}() void and drop "__" prefix

v2:
* while at it rename atiixp_ide_dma_host_off() to atiixp_dma_host_off(),
sgiioc4_ide_dma_{host_off,off_quietly}() to sgiioc4_dma_{host_off,off_quietly}()
and sl82c105_ide_dma_off_quietly() to sl82c105_dma_off_quietly()
[ Noticed by Sergei Shtylyov <sshtylyov@ru.mvista.com>. ]

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

+78 -99
+4 -6
drivers/ide/arm/icside.c
··· 307 307 return on; 308 308 } 309 309 310 - static int icside_dma_host_off(ide_drive_t *drive) 310 + static void icside_dma_host_off(ide_drive_t *drive) 311 311 { 312 - return 0; 313 312 } 314 313 315 - static int icside_dma_off_quietly(ide_drive_t *drive) 314 + static void icside_dma_off_quietly(ide_drive_t *drive) 316 315 { 317 316 drive->using_dma = 0; 318 - return icside_dma_host_off(drive); 319 317 } 320 318 321 319 static int icside_dma_host_on(ide_drive_t *drive) ··· 492 494 hwif->autodma = autodma; 493 495 494 496 hwif->ide_dma_check = icside_dma_check; 495 - hwif->ide_dma_host_off = icside_dma_host_off; 496 - hwif->ide_dma_off_quietly = icside_dma_off_quietly; 497 + hwif->dma_host_off = icside_dma_host_off; 498 + hwif->dma_off_quietly = icside_dma_off_quietly; 497 499 hwif->ide_dma_host_on = icside_dma_host_on; 498 500 hwif->ide_dma_on = icside_dma_on; 499 501 hwif->dma_setup = icside_dma_setup;
+6 -8
drivers/ide/cris/ide-cris.c
··· 682 682 static void cris_ide_output_data (ide_drive_t *drive, void *, unsigned int); 683 683 static void cris_atapi_input_bytes(ide_drive_t *drive, void *, unsigned int); 684 684 static void cris_atapi_output_bytes(ide_drive_t *drive, void *, unsigned int); 685 - static int cris_dma_off (ide_drive_t *drive); 686 685 static int cris_dma_on (ide_drive_t *drive); 686 + 687 + static void cris_dma_off(ide_drive_t *drive) 688 + { 689 + } 687 690 688 691 static void tune_cris_ide(ide_drive_t *drive, u8 pio) 689 692 { ··· 817 814 hwif->OUTBSYNC = &cris_ide_outbsync; 818 815 hwif->INB = &cris_ide_inb; 819 816 hwif->INW = &cris_ide_inw; 820 - hwif->ide_dma_host_off = &cris_dma_off; 817 + hwif->dma_host_off = &cris_dma_off; 821 818 hwif->ide_dma_host_on = &cris_dma_on; 822 - hwif->ide_dma_off_quietly = &cris_dma_off; 819 + hwif->dma_off_quietly = &cris_dma_off; 823 820 hwif->udma_four = 0; 824 821 hwif->ultra_mask = cris_ultra_mask; 825 822 hwif->mwdma_mask = 0x07; /* Multiword DMA 0-2 */ ··· 839 836 cris_ide_set_speed(TYPE_PIO, ATA_PIO4_SETUP, ATA_PIO4_STROBE, ATA_PIO4_HOLD); 840 837 cris_ide_set_speed(TYPE_DMA, 0, ATA_DMA2_STROBE, ATA_DMA2_HOLD); 841 838 cris_ide_set_speed(TYPE_UDMA, ATA_UDMA2_CYC, ATA_UDMA2_DVS, 0); 842 - } 843 - 844 - static int cris_dma_off (ide_drive_t *drive) 845 - { 846 - return 0; 847 839 } 848 840 849 841 static int cris_dma_on (ide_drive_t *drive)
+3 -3
drivers/ide/ide-cd.c
··· 1104 1104 if (dma) { 1105 1105 info->dma = 0; 1106 1106 if ((dma_error = HWIF(drive)->ide_dma_end(drive))) 1107 - __ide_dma_off(drive); 1107 + ide_dma_off(drive); 1108 1108 } 1109 1109 1110 1110 if (cdrom_decode_status(drive, 0, &stat)) ··· 1700 1700 if (dma) { 1701 1701 if (dma_error) { 1702 1702 printk(KERN_ERR "ide-cd: dma error\n"); 1703 - __ide_dma_off(drive); 1703 + ide_dma_off(drive); 1704 1704 return ide_error(drive, "dma error", stat); 1705 1705 } 1706 1706 ··· 1826 1826 info->dma = 0; 1827 1827 if ((dma_error = HWIF(drive)->ide_dma_end(drive))) { 1828 1828 printk(KERN_ERR "ide-cd: write dma error\n"); 1829 - __ide_dma_off(drive); 1829 + ide_dma_off(drive); 1830 1830 } 1831 1831 } 1832 1832
+18 -21
drivers/ide/ide-dma.c
··· 414 414 } 415 415 416 416 /** 417 - * __ide_dma_host_off - Generic DMA kill 417 + * ide_dma_host_off - Generic DMA kill 418 418 * @drive: drive to control 419 419 * 420 420 * Perform the generic IDE controller DMA off operation. This 421 421 * works for most IDE bus mastering controllers 422 422 */ 423 423 424 - int __ide_dma_host_off (ide_drive_t *drive) 424 + void ide_dma_host_off(ide_drive_t *drive) 425 425 { 426 426 ide_hwif_t *hwif = HWIF(drive); 427 427 u8 unit = (drive->select.b.unit & 0x01); 428 428 u8 dma_stat = hwif->INB(hwif->dma_status); 429 429 430 430 hwif->OUTB((dma_stat & ~(1<<(5+unit))), hwif->dma_status); 431 - return 0; 432 431 } 433 432 434 - EXPORT_SYMBOL(__ide_dma_host_off); 433 + EXPORT_SYMBOL(ide_dma_host_off); 435 434 436 435 /** 437 - * __ide_dma_host_off_quietly - Generic DMA kill 436 + * ide_dma_off_quietly - Generic DMA kill 438 437 * @drive: drive to control 439 438 * 440 439 * Turn off the current DMA on this IDE controller. 441 440 */ 442 441 443 - int __ide_dma_off_quietly (ide_drive_t *drive) 442 + void ide_dma_off_quietly(ide_drive_t *drive) 444 443 { 445 444 drive->using_dma = 0; 446 445 ide_toggle_bounce(drive, 0); 447 446 448 - if (HWIF(drive)->ide_dma_host_off(drive)) 449 - return 1; 450 - 451 - return 0; 447 + drive->hwif->dma_host_off(drive); 452 448 } 453 449 454 - EXPORT_SYMBOL(__ide_dma_off_quietly); 450 + EXPORT_SYMBOL(ide_dma_off_quietly); 455 451 #endif /* CONFIG_BLK_DEV_IDEDMA_PCI */ 456 452 457 453 /** 458 - * __ide_dma_off - disable DMA on a device 454 + * ide_dma_off - disable DMA on a device 459 455 * @drive: drive to disable DMA on 460 456 * 461 457 * Disable IDE DMA for a device on this IDE controller. 462 458 * Inform the user that DMA has been disabled. 463 459 */ 464 460 465 - int __ide_dma_off (ide_drive_t *drive) 461 + void ide_dma_off(ide_drive_t *drive) 466 462 { 467 463 printk(KERN_INFO "%s: DMA disabled\n", drive->name); 468 - return HWIF(drive)->ide_dma_off_quietly(drive); 464 + drive->hwif->dma_off_quietly(drive); 469 465 } 470 466 471 - EXPORT_SYMBOL(__ide_dma_off); 467 + EXPORT_SYMBOL(ide_dma_off); 472 468 473 469 #ifdef CONFIG_BLK_DEV_IDEDMA_PCI 474 470 /** ··· 754 758 return; 755 759 bug_dma_off: 756 760 printk(", BUG DMA OFF"); 757 - hwif->ide_dma_off_quietly(drive); 761 + hwif->dma_off_quietly(drive); 758 762 return; 759 763 } 760 764 ··· 769 773 770 774 switch(rc) { 771 775 case -1: /* DMA needs to be disabled */ 772 - return hwif->ide_dma_off_quietly(drive); 776 + hwif->dma_off_quietly(drive); 777 + return 0; 773 778 case 0: /* DMA needs to be enabled */ 774 779 return hwif->ide_dma_on(drive); 775 780 case 1: /* DMA setting cannot be changed */ ··· 934 937 if (!(hwif->dma_prdtable)) 935 938 hwif->dma_prdtable = (hwif->dma_base + 4); 936 939 937 - if (!hwif->ide_dma_off_quietly) 938 - hwif->ide_dma_off_quietly = &__ide_dma_off_quietly; 939 - if (!hwif->ide_dma_host_off) 940 - hwif->ide_dma_host_off = &__ide_dma_host_off; 940 + if (!hwif->dma_off_quietly) 941 + hwif->dma_off_quietly = &ide_dma_off_quietly; 942 + if (!hwif->dma_host_off) 943 + hwif->dma_host_off = &ide_dma_host_off; 941 944 if (!hwif->ide_dma_on) 942 945 hwif->ide_dma_on = &__ide_dma_on; 943 946 if (!hwif->ide_dma_host_on)
+4 -4
drivers/ide/ide-floppy.c
··· 867 867 if (test_and_clear_bit(PC_DMA_IN_PROGRESS, &pc->flags)) { 868 868 printk(KERN_ERR "ide-floppy: The floppy wants to issue " 869 869 "more interrupts in DMA mode\n"); 870 - (void)__ide_dma_off(drive); 870 + ide_dma_off(drive); 871 871 return ide_do_reset(drive); 872 872 } 873 873 ··· 1097 1097 pc->current_position = pc->buffer; 1098 1098 bcount.all = min(pc->request_transfer, 63 * 1024); 1099 1099 1100 - if (test_and_clear_bit(PC_DMA_ERROR, &pc->flags)) { 1101 - (void)__ide_dma_off(drive); 1102 - } 1100 + if (test_and_clear_bit(PC_DMA_ERROR, &pc->flags)) 1101 + ide_dma_off(drive); 1102 + 1103 1103 feature.all = 0; 1104 1104 1105 1105 if (test_bit(PC_DMA_RECOMMENDED, &pc->flags) && drive->using_dma)
+1 -1
drivers/ide/ide-io.c
··· 1351 1351 */ 1352 1352 drive->retry_pio++; 1353 1353 drive->state = DMA_PIO_RETRY; 1354 - (void) hwif->ide_dma_off_quietly(drive); 1354 + hwif->dma_off_quietly(drive); 1355 1355 1356 1356 /* 1357 1357 * un-busy drive etc (hwgroup->busy is cleared on return) and
+4 -4
drivers/ide/ide-iops.c
··· 753 753 754 754 #ifdef CONFIG_BLK_DEV_IDEDMA 755 755 if (hwif->ide_dma_check) /* check if host supports DMA */ 756 - hwif->ide_dma_host_off(drive); 756 + hwif->dma_host_off(drive); 757 757 #endif 758 758 759 759 /* ··· 832 832 if (speed >= XFER_SW_DMA_0) 833 833 hwif->ide_dma_host_on(drive); 834 834 else if (hwif->ide_dma_check) /* check if host supports DMA */ 835 - hwif->ide_dma_off_quietly(drive); 835 + hwif->dma_off_quietly(drive); 836 836 #endif 837 837 838 838 switch(speed) { ··· 1042 1042 { 1043 1043 #ifdef CONFIG_BLK_DEV_IDEDMA 1044 1044 if (drive->crc_count) { 1045 - (void) HWIF(drive)->ide_dma_off_quietly(drive); 1045 + drive->hwif->dma_off_quietly(drive); 1046 1046 ide_set_xfer_rate(drive, ide_auto_reduce_xfer(drive)); 1047 1047 if (drive->current_speed >= XFER_SW_DMA_0) 1048 1048 (void) HWIF(drive)->ide_dma_on(drive); 1049 1049 } else 1050 - (void)__ide_dma_off(drive); 1050 + ide_dma_off(drive); 1051 1051 #endif 1052 1052 } 1053 1053
+1 -1
drivers/ide/ide-probe.c
··· 853 853 * things, if not checked and cleared. 854 854 * PARANOIA!!! 855 855 */ 856 - hwif->ide_dma_off_quietly(drive); 856 + hwif->dma_off_quietly(drive); 857 857 #ifdef CONFIG_IDEDMA_ONLYDISK 858 858 if (drive->media == ide_disk) 859 859 #endif
+2 -2
drivers/ide/ide-tape.c
··· 1970 1970 printk(KERN_ERR "ide-tape: The tape wants to issue more " 1971 1971 "interrupts in DMA mode\n"); 1972 1972 printk(KERN_ERR "ide-tape: DMA disabled, reverting to PIO\n"); 1973 - (void)__ide_dma_off(drive); 1973 + ide_dma_off(drive); 1974 1974 return ide_do_reset(drive); 1975 1975 } 1976 1976 /* Get the number of bytes to transfer on this interrupt. */ ··· 2176 2176 if (test_and_clear_bit(PC_DMA_ERROR, &pc->flags)) { 2177 2177 printk(KERN_WARNING "ide-tape: DMA disabled, " 2178 2178 "reverting to PIO\n"); 2179 - (void)__ide_dma_off(drive); 2179 + ide_dma_off(drive); 2180 2180 } 2181 2181 if (test_bit(PC_DMA_RECOMMENDED, &pc->flags) && drive->using_dma) 2182 2182 dma_ok = !hwif->dma_setup(drive);
+4 -6
drivers/ide/ide.c
··· 506 506 hwif->ide_dma_end = tmp_hwif->ide_dma_end; 507 507 hwif->ide_dma_check = tmp_hwif->ide_dma_check; 508 508 hwif->ide_dma_on = tmp_hwif->ide_dma_on; 509 - hwif->ide_dma_off_quietly = tmp_hwif->ide_dma_off_quietly; 509 + hwif->dma_off_quietly = tmp_hwif->dma_off_quietly; 510 510 hwif->ide_dma_test_irq = tmp_hwif->ide_dma_test_irq; 511 511 hwif->ide_dma_clear_irq = tmp_hwif->ide_dma_clear_irq; 512 512 hwif->ide_dma_host_on = tmp_hwif->ide_dma_host_on; 513 - hwif->ide_dma_host_off = tmp_hwif->ide_dma_host_off; 513 + hwif->dma_host_off = tmp_hwif->dma_host_off; 514 514 hwif->ide_dma_lostirq = tmp_hwif->ide_dma_lostirq; 515 515 hwif->ide_dma_timeout = tmp_hwif->ide_dma_timeout; 516 516 ··· 1138 1138 if (ide_set_dma(drive)) 1139 1139 return -EIO; 1140 1140 if (HWIF(drive)->ide_dma_on(drive)) return -EIO; 1141 - } else { 1142 - if (__ide_dma_off(drive)) 1143 - return -EIO; 1144 - } 1141 + } else 1142 + ide_dma_off(drive); 1145 1143 return 0; 1146 1144 #else 1147 1145 return -EPERM;
+4 -7
drivers/ide/mips/au1xxx-ide.c
··· 449 449 return auide_dma_host_on(drive); 450 450 } 451 451 452 - 453 - static int auide_dma_host_off(ide_drive_t *drive) 452 + static void auide_dma_host_off(ide_drive_t *drive) 454 453 { 455 - return 0; 456 454 } 457 455 458 - static int auide_dma_off_quietly(ide_drive_t *drive) 456 + static void auide_dma_off_quietly(ide_drive_t *drive) 459 457 { 460 458 drive->using_dma = 0; 461 - return auide_dma_host_off(drive); 462 459 } 463 460 464 461 static int auide_dma_lostirq(ide_drive_t *drive) ··· 721 724 hwif->speedproc = &auide_tune_chipset; 722 725 723 726 #ifdef CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA 724 - hwif->ide_dma_off_quietly = &auide_dma_off_quietly; 727 + hwif->dma_off_quietly = &auide_dma_off_quietly; 725 728 hwif->ide_dma_timeout = &auide_dma_timeout; 726 729 727 730 hwif->ide_dma_check = &auide_dma_check; ··· 730 733 hwif->ide_dma_end = &auide_dma_end; 731 734 hwif->dma_setup = &auide_dma_setup; 732 735 hwif->ide_dma_test_irq = &auide_dma_test_irq; 733 - hwif->ide_dma_host_off = &auide_dma_host_off; 736 + hwif->dma_host_off = &auide_dma_host_off; 734 737 hwif->ide_dma_host_on = &auide_dma_host_on; 735 738 hwif->ide_dma_lostirq = &auide_dma_lostirq; 736 739 hwif->ide_dma_on = &auide_dma_on;
+3 -3
drivers/ide/pci/atiixp.c
··· 121 121 return __ide_dma_host_on(drive); 122 122 } 123 123 124 - static int atiixp_ide_dma_host_off(ide_drive_t *drive) 124 + static void atiixp_dma_host_off(ide_drive_t *drive) 125 125 { 126 126 struct pci_dev *dev = drive->hwif->pci_dev; 127 127 unsigned long flags; ··· 135 135 136 136 spin_unlock_irqrestore(&atiixp_lock, flags); 137 137 138 - return __ide_dma_host_off(drive); 138 + ide_dma_host_off(drive); 139 139 } 140 140 141 141 /** ··· 306 306 hwif->udma_four = 0; 307 307 308 308 hwif->ide_dma_host_on = &atiixp_ide_dma_host_on; 309 - hwif->ide_dma_host_off = &atiixp_ide_dma_host_off; 309 + hwif->dma_host_off = &atiixp_dma_host_off; 310 310 hwif->ide_dma_check = &atiixp_dma_check; 311 311 if (!noautodma) 312 312 hwif->autodma = 1;
+1 -1
drivers/ide/pci/cs5530.c
··· 109 109 /* 110 110 * Default to DMA-off in case we run into trouble here. 111 111 */ 112 - hwif->ide_dma_off_quietly(drive); 112 + hwif->dma_off_quietly(drive); 113 113 114 114 /* 115 115 * The CS5530 specifies that two drives sharing a cable cannot
+1 -1
drivers/ide/pci/it821x.c
··· 606 606 printk(".\n"); 607 607 /* Now the core code will have wrongly decided no DMA 608 608 so we need to fix this */ 609 - hwif->ide_dma_off_quietly(drive); 609 + hwif->dma_off_quietly(drive); 610 610 #ifdef CONFIG_IDEDMA_ONLYDISK 611 611 if (drive->media == ide_disk) 612 612 #endif
+3 -3
drivers/ide/pci/sc1200.c
··· 161 161 /* 162 162 * Default to DMA-off in case we run into trouble here. 163 163 */ 164 - hwif->ide_dma_off_quietly(drive); /* turn off DMA while we fiddle */ 164 + hwif->dma_off_quietly(drive); /* turn off DMA while we fiddle */ 165 165 outb(inb(hwif->dma_base+2)&~(unit?0x40:0x20), hwif->dma_base+2); /* clear DMA_capable bit */ 166 166 167 167 /* ··· 439 439 ide_drive_t *drive = &(hwif->drives[d]); 440 440 if (drive->present && !__ide_dma_bad_drive(drive)) { 441 441 int was_using_dma = drive->using_dma; 442 - hwif->ide_dma_off_quietly(drive); 442 + hwif->dma_off_quietly(drive); 443 443 sc1200_config_dma(drive); 444 444 if (!was_using_dma && drive->using_dma) { 445 - hwif->ide_dma_off_quietly(drive); 445 + hwif->dma_off_quietly(drive); 446 446 } 447 447 } 448 448 }
+5 -9
drivers/ide/pci/sgiioc4.c
··· 282 282 return HWIF(drive)->ide_dma_host_on(drive); 283 283 } 284 284 285 - static int 286 - sgiioc4_ide_dma_off_quietly(ide_drive_t * drive) 285 + static void sgiioc4_dma_off_quietly(ide_drive_t *drive) 287 286 { 288 287 drive->using_dma = 0; 289 288 290 - return HWIF(drive)->ide_dma_host_off(drive); 289 + drive->hwif->dma_host_off(drive); 291 290 } 292 291 293 292 static int sgiioc4_ide_dma_check(ide_drive_t *drive) ··· 316 317 return 1; 317 318 } 318 319 319 - static int 320 - sgiioc4_ide_dma_host_off(ide_drive_t * drive) 320 + static void sgiioc4_dma_host_off(ide_drive_t * drive) 321 321 { 322 322 sgiioc4_clearirq(drive); 323 - 324 - return 0; 325 323 } 326 324 327 325 static int ··· 608 612 hwif->ide_dma_end = &sgiioc4_ide_dma_end; 609 613 hwif->ide_dma_check = &sgiioc4_ide_dma_check; 610 614 hwif->ide_dma_on = &sgiioc4_ide_dma_on; 611 - hwif->ide_dma_off_quietly = &sgiioc4_ide_dma_off_quietly; 615 + hwif->dma_off_quietly = &sgiioc4_dma_off_quietly; 612 616 hwif->ide_dma_test_irq = &sgiioc4_ide_dma_test_irq; 613 617 hwif->ide_dma_host_on = &sgiioc4_ide_dma_host_on; 614 - hwif->ide_dma_host_off = &sgiioc4_ide_dma_host_off; 618 + hwif->dma_host_off = &sgiioc4_dma_host_off; 615 619 hwif->ide_dma_lostirq = &sgiioc4_ide_dma_lostirq; 616 620 hwif->ide_dma_timeout = &__ide_dma_timeout; 617 621
+5 -8
drivers/ide/pci/sl82c105.c
··· 265 265 return __ide_dma_on(drive); 266 266 } 267 267 268 - static int sl82c105_ide_dma_off_quietly (ide_drive_t *drive) 268 + static void sl82c105_dma_off_quietly(ide_drive_t *drive) 269 269 { 270 270 u8 speed = XFER_PIO_0; 271 - int rc; 272 - 273 - DBG(("sl82c105_ide_dma_off_quietly(drive:%s)\n", drive->name)); 274 271 275 - rc = __ide_dma_off_quietly(drive); 272 + DBG(("sl82c105_dma_off_quietly(drive:%s)\n", drive->name)); 273 + 274 + ide_dma_off_quietly(drive); 276 275 if (drive->pio_speed) 277 276 speed = drive->pio_speed - XFER_PIO_0; 278 277 config_for_pio(drive, speed, 0, 1); 279 - 280 - return rc; 281 278 } 282 279 283 280 /* ··· 437 440 438 441 hwif->ide_dma_check = &sl82c105_check_drive; 439 442 hwif->ide_dma_on = &sl82c105_ide_dma_on; 440 - hwif->ide_dma_off_quietly = &sl82c105_ide_dma_off_quietly; 443 + hwif->dma_off_quietly = &sl82c105_dma_off_quietly; 441 444 hwif->ide_dma_lostirq = &sl82c105_ide_dma_lost_irq; 442 445 hwif->dma_start = &sl82c105_ide_dma_start; 443 446 hwif->ide_dma_timeout = &sl82c105_ide_dma_timeout;
+3 -5
drivers/ide/ppc/pmac.c
··· 1979 1979 return 1; 1980 1980 } 1981 1981 1982 - static int 1983 - pmac_ide_dma_host_off (ide_drive_t *drive) 1982 + static void pmac_ide_dma_host_off(ide_drive_t *drive) 1984 1983 { 1985 - return 0; 1986 1984 } 1987 1985 1988 1986 static int ··· 2032 2034 return; 2033 2035 } 2034 2036 2035 - hwif->ide_dma_off_quietly = &__ide_dma_off_quietly; 2037 + hwif->dma_off_quietly = &ide_dma_off_quietly; 2036 2038 hwif->ide_dma_on = &__ide_dma_on; 2037 2039 hwif->ide_dma_check = &pmac_ide_dma_check; 2038 2040 hwif->dma_setup = &pmac_ide_dma_setup; ··· 2040 2042 hwif->dma_start = &pmac_ide_dma_start; 2041 2043 hwif->ide_dma_end = &pmac_ide_dma_end; 2042 2044 hwif->ide_dma_test_irq = &pmac_ide_dma_test_irq; 2043 - hwif->ide_dma_host_off = &pmac_ide_dma_host_off; 2045 + hwif->dma_host_off = &pmac_ide_dma_host_off; 2044 2046 hwif->ide_dma_host_on = &pmac_ide_dma_host_on; 2045 2047 hwif->ide_dma_timeout = &__ide_dma_timeout; 2046 2048 hwif->ide_dma_lostirq = &pmac_ide_dma_lostirq;
+6 -6
include/linux/ide.h
··· 735 735 int (*ide_dma_end)(ide_drive_t *drive); 736 736 int (*ide_dma_check)(ide_drive_t *drive); 737 737 int (*ide_dma_on)(ide_drive_t *drive); 738 - int (*ide_dma_off_quietly)(ide_drive_t *drive); 738 + void (*dma_off_quietly)(ide_drive_t *drive); 739 739 int (*ide_dma_test_irq)(ide_drive_t *drive); 740 740 void (*ide_dma_clear_irq)(ide_drive_t *drive); 741 741 int (*ide_dma_host_on)(ide_drive_t *drive); 742 - int (*ide_dma_host_off)(ide_drive_t *drive); 742 + void (*dma_host_off)(ide_drive_t *drive); 743 743 int (*ide_dma_lostirq)(ide_drive_t *drive); 744 744 int (*ide_dma_timeout)(ide_drive_t *drive); 745 745 ··· 1276 1276 int __ide_dma_bad_drive(ide_drive_t *); 1277 1277 int __ide_dma_good_drive(ide_drive_t *); 1278 1278 int ide_use_dma(ide_drive_t *); 1279 - int __ide_dma_off(ide_drive_t *); 1279 + void ide_dma_off(ide_drive_t *); 1280 1280 void ide_dma_verbose(ide_drive_t *); 1281 1281 int ide_set_dma(ide_drive_t *); 1282 1282 ide_startstop_t ide_dma_intr(ide_drive_t *); ··· 1288 1288 extern int ide_release_dma(ide_hwif_t *); 1289 1289 extern void ide_setup_dma(ide_hwif_t *, unsigned long, unsigned int); 1290 1290 1291 - extern int __ide_dma_host_off(ide_drive_t *); 1292 - extern int __ide_dma_off_quietly(ide_drive_t *); 1291 + void ide_dma_host_off(ide_drive_t *); 1292 + void ide_dma_off_quietly(ide_drive_t *); 1293 1293 extern int __ide_dma_host_on(ide_drive_t *); 1294 1294 extern int __ide_dma_on(ide_drive_t *); 1295 1295 extern int __ide_dma_check(ide_drive_t *); ··· 1302 1302 1303 1303 #else 1304 1304 static inline int ide_use_dma(ide_drive_t *drive) { return 0; } 1305 - static inline int __ide_dma_off(ide_drive_t *drive) { return 0; } 1305 + static inline void ide_dma_off(ide_drive_t *drive) { ; } 1306 1306 static inline void ide_dma_verbose(ide_drive_t *drive) { ; } 1307 1307 static inline int ide_set_dma(ide_drive_t *drive) { return 1; } 1308 1308 #endif /* CONFIG_BLK_DEV_IDEDMA */