Signed-off-by: Nanakos Chrysostomos --- kernel/dma.c.orig Wed Aug 17 16:56:24 2005 +++ kernel/dma.c Wed Aug 17 16:58:01 2005 @@ -93,6 +93,7 @@ void free_dma(unsigned char dma) printk("Trying to free DMA%u\n", dma); else if (!xchg(&dma_chan_busy[dma].lock, 0)) { printk("Trying to free free DMA%u\n", dma); + } /* Nanakos Chrysostomos */ } /* free_dma */ /* enable/disable a specific DMA channel */ @@ -235,8 +236,8 @@ int get_dma_residue(unsigned char dma) unsigned short count = 1 + dma_inb(io_port); count += dma_inb(io_port) << 8; - - return (dmanr <= 3) ? count : (count << 1); + /* Nanakos Chrysostomos */ + return (dma <= 3) ? count : (count << 1); } #endif