]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/icside.c
ide: set/clear drive->waiting_for_dma flag in the core code
[linux-2.6-omap-h63xx.git] / drivers / ide / icside.c
index 9bf57d7c8e57076eb7594b4be3027025320b344e..4e16ce68b0630988a574f51270b12a4a49bd3dc5 100644 (file)
@@ -287,8 +287,6 @@ static int icside_dma_end(ide_drive_t *drive)
        ide_hwif_t *hwif = drive->hwif;
        struct expansion_card *ec = ECARD_DEV(hwif->dev);
 
-       drive->waiting_for_dma = 0;
-
        disable_dma(ec->dma);
 
        return get_dma_residue(ec->dma) != 0;
@@ -343,8 +341,6 @@ static int icside_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd)
        set_dma_sg(ec->dma, hwif->sg_table, cmd->sg_nents);
        set_dma_mode(ec->dma, dma_mode);
 
-       drive->waiting_for_dma = 1;
-
        return 0;
 }