]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide.c
ide: switch to DMA-mapping API part #2
[linux-2.6-omap-h63xx.git] / drivers / ide / ide.c
index a498245dc21391916337f3518b115c07f816be37..083783e851d12f2346918ca7607e23f6218c4ac6 100644 (file)
@@ -227,8 +227,7 @@ void ide_unregister(ide_hwif_t *hwif)
        kfree(hwif->sg_table);
        unregister_blkdev(hwif->major, hwif->name);
 
-       if (hwif->dma_base)
-               ide_release_dma_engine(hwif);
+       ide_release_dma_engine(hwif);
 
        mutex_unlock(&ide_cfg_mtx);
 }