patch-1.3.11 linux/kernel/dma.c

Next file: linux/kernel/exit.c
Previous file: linux/include/linux/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.10/linux/kernel/dma.c linux/kernel/dma.c
@@ -74,7 +74,7 @@
 	if (dmanr >= MAX_DMA_CHANNELS)
 		return -EINVAL;
 
-	if (xchg_u32(&dma_chan_busy[dmanr].lock, 1) != 0)
+	if (xchg(&dma_chan_busy[dmanr].lock, 1) != 0)
 		return -EBUSY;
 
 	dma_chan_busy[dmanr].device_id = device_id;
@@ -91,7 +91,7 @@
 		return;
 	}
 
-	if (xchg_u32(&dma_chan_busy[dmanr].lock, 0) == 0) {
+	if (xchg(&dma_chan_busy[dmanr].lock, 0) == 0) {
 		printk("Trying to free free DMA%d\n", dmanr);
 		return;
 	}	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this