patch-2.3.47 linux/drivers/sbus/dvma.c

Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/sbus/char/bpp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/sbus/dvma.c linux/drivers/sbus/dvma.c
@@ -105,7 +105,8 @@
 		}
 
 		dma->regs = sbus_ioremap(&dma->sdev->resource[0], 0,
-					 PAGE_SIZE, "dma");
+					 dma->sdev->resource[0].end - dma->sdev->resource[0].start + 1,
+					 "dma");
 
 		dma->node = dma->sdev->prom_node;
 		

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)