drm fixup 1/2 - missing bus_address assignment

From: Dave Airlie
Date: Fri Aug 27 2004 - 09:14:07 EST



This is a series of two minor patches for the DRM, one fixes a missing
bus_address and the other from Arjan optimises some access in the i8x0
drivers..


Patch from Tom Arbuckle for missing bus_address

Signed-off-by: Dave Airlie <airlied@xxxxxxxx>

diff -Nru a/drivers/char/drm/drm_bufs.h b/drivers/char/drm/drm_bufs.h
--- a/drivers/char/drm/drm_bufs.h Sat Aug 28 00:02:27 2004
+++ b/drivers/char/drm/drm_bufs.h Sat Aug 28 00:02:28 2004
@@ -691,6 +691,7 @@
buf->used = 0;
buf->offset = (dma->byte_count + byte_count + offset);
buf->address = (void *)(page + offset);
+ buf->bus_address = virt_to_bus(buf->address);
buf->next = NULL;
buf->waiting = 0;
buf->pending = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/