]> err.no Git - linux-2.6/blobdiff - include/asm-ppc/dbdma.h
[PATCH] parport: add NetMOS 9805 support
[linux-2.6] / include / asm-ppc / dbdma.h
index 6047f288c70b81cf23b772e10c720d0bbee50aae..8973565f95d39f38da42c49ddd6b9110e5687e7e 100644 (file)
@@ -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 */