[PATCH 03/11] ARM: PL08x: use 'u32' for LLI structure members, not dma_addr_t
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Dec 24 05:07:03 EST 2010
Use 'u32' for the LLI structure members, which are defined by hardware
to be 32-bit. dma_addr_t is much more vague about its actual size.
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
---
drivers/dma/amba-pl08x.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 14c024f..53ca6a9 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -97,12 +97,13 @@ struct vendor_data {
/*
* PL08X private data structures
* An LLI struct - see PL08x TRM. Note that next uses bit[0] as a bus bit,
- * start & end do not - their bus bit info is in cctl.
+ * start & end do not - their bus bit info is in cctl. Also note that these
+ * are fixed 32-bit quantities.
*/
struct lli {
- dma_addr_t src;
- dma_addr_t dst;
- dma_addr_t next;
+ u32 src;
+ u32 dst;
+ u32 next;
u32 cctl;
};
--
1.6.2.5
More information about the linux-arm-kernel
mailing list