summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/dbdma.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/dbdma.h')
-rw-r--r--include/asm-ppc/dbdma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ppc/dbdma.h b/include/asm-ppc/dbdma.h
index 6047f288c70..8973565f95d 100644
--- a/include/asm-ppc/dbdma.h
+++ b/include/asm-ppc/dbdma.h
@@ -88,7 +88,7 @@ struct dbdma_cmd {
#define WAIT_ALWAYS 3 /* always wait */
/* Align an address for a DBDMA command structure */
-#define DBDMA_ALIGN(x) (((unsigned)(x) + sizeof(struct dbdma_cmd) - 1) \
+#define DBDMA_ALIGN(x) (((unsigned long)(x) + sizeof(struct dbdma_cmd) - 1) \
& -sizeof(struct dbdma_cmd))
/* Useful macros */