ide: use ide_destroy_dmatable() instead of pci_unmap_sg() (take 2)
[deliverable/linux.git] / drivers / ide / ide-dma.c
index 7d361da8ceb21ee00a2790cd80cc5c2f21b26eda..1ca1210ec1c0f9f08d002be602c994984c30e8d0 100644 (file)
@@ -282,12 +282,12 @@ int ide_build_dmatable (ide_drive_t *drive, struct request *rq)
                        *--table |= cpu_to_le32(0x80000000);
                return count;
        }
+
        printk(KERN_ERR "%s: empty DMA table?\n", drive->name);
+
 use_pio_instead:
-       pci_unmap_sg(hwif->pci_dev,
-                    hwif->sg_table,
-                    hwif->sg_nents,
-                    hwif->sg_dma_direction);
+       ide_destroy_dmatable(drive);
+
        return 0; /* revert to PIO for this request */
 }
 
This page took 0.02468 seconds and 5 git commands to generate.