]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/ide/ide-dma.c
ide: move drive->using_dma check to callers of ->dma_host_on method
[mirror_ubuntu-bionic-kernel.git] / drivers / ide / ide-dma.c
index edd0018c49887b33ba62e4c6050766ce86d2152a..780911e0537e516c20f1c78c19f63d96e47667f7 100644 (file)
@@ -471,7 +471,7 @@ EXPORT_SYMBOL(ide_dma_off);
 
 void ide_dma_host_on(ide_drive_t *drive)
 {
-       if (drive->using_dma) {
+       if (1) {
                ide_hwif_t *hwif        = HWIF(drive);
                u8 unit                 = (drive->select.b.unit & 0x01);
                u8 dma_stat             = hwif->INB(hwif->dma_status);