Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93648
b: refs/heads/master
c: 8d9f9a7
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent 8c6a6c0 commit 1f5e8d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e59c236846df444860ffc8b852117f9ff65c101
refs/heads/master: 8d9f9a76ea09911f4aaf0d9e852fd25335080f53
11 changes: 2 additions & 9 deletions trunk/drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,12 +840,10 @@ static int ide_allocate_dma_engine(ide_hwif_t *hwif)

void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
{
u8 dma_stat;

if (hwif->mmio)
printk(KERN_INFO " %s: MMIO-DMA ", hwif->name);
printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name);
else
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, base, base + 7);

hwif->extra_base = base + (hwif->channel ? 8 : 16);
Expand Down Expand Up @@ -884,11 +882,6 @@ void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
hwif->dma_timeout = &ide_dma_timeout;
if (!hwif->dma_lost_irq)
hwif->dma_lost_irq = &ide_dma_lost_irq;

dma_stat = hwif->INB(hwif->dma_status);
printk(KERN_CONT ", BIOS settings: %s:%s, %s:%s\n",
hwif->drives[0].name, (dma_stat & 0x20) ? "DMA" : "PIO",
hwif->drives[1].name, (dma_stat & 0x40) ? "DMA" : "PIO");
}

EXPORT_SYMBOL_GPL(ide_setup_dma);
Expand Down

0 comments on commit 1f5e8d2

Please sign in to comment.