|
@@ -254,16 +254,11 @@ static void __devinit init_hwif_trm290(ide_hwif_t *hwif)
|
|
|
hwif->config_data = cfg_base;
|
|
|
hwif->dma_base = (cfg_base + 4) ^ (hwif->channel ? 0x80 : 0);
|
|
|
|
|
|
- printk(KERN_INFO " %s: BM-DMA at 0x%04lx-0x%04lx",
|
|
|
+ printk(KERN_INFO " %s: BM-DMA at 0x%04lx-0x%04lx\n",
|
|
|
hwif->name, hwif->dma_base, hwif->dma_base + 3);
|
|
|
|
|
|
- hwif->dmatable_cpu = pci_alloc_consistent(dev, PRD_ENTRIES * PRD_BYTES,
|
|
|
- &hwif->dmatable_dma);
|
|
|
- if (!hwif->dmatable_cpu) {
|
|
|
- printk(KERN_CONT " -- Error, unable to allocate DMA table.\n");
|
|
|
+ if (ide_allocate_dma_engine(hwif))
|
|
|
return;
|
|
|
- }
|
|
|
- printk(KERN_CONT "\n");
|
|
|
|
|
|
local_irq_save(flags);
|
|
|
/* put config reg into first byte of hwif->select_data */
|