From: Hiroshi DOYU Date: Mon, 30 Jul 2007 11:04:03 +0000 (+0300) Subject: DSPGW: Use ALIGN macro instead of homemade one X-Git-Tag: v2.6.23-omap1~273 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3c3607d7e9d12a4bc5590fdf9462cffd41990d99;p=linux-2.6-omap-h63xx.git DSPGW: Use ALIGN macro instead of homemade one Signed-off-by: Hiroshi DOYU Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/dsp/task.c b/arch/arm/plat-omap/dsp/task.c index 0e2b5c78048..2b2ab76189f 100644 --- a/arch/arm/plat-omap/dsp/task.c +++ b/arch/arm/plat-omap/dsp/task.c @@ -44,8 +44,6 @@ #include "ipbuf.h" #include "proclist.h" -#define is_aligned(adr,align) (!((adr)&((align)-1))) - /* * devstate: task device state machine * NOTASK: task is not attached. @@ -493,8 +491,8 @@ static int dsp_task_config(struct dsptask *task, u8 tid) /* mmap buffer configuration check */ if ((task->map_length > 0) && - ((!is_aligned((unsigned long)task->map_base, PAGE_SIZE)) || - (!is_aligned(task->map_length, PAGE_SIZE)) || + ((!ALIGN((unsigned long)task->map_base, PAGE_SIZE)) || + (!ALIGN(task->map_length, PAGE_SIZE)) || (dsp_mem_type(task->map_base, task->map_length) != MEM_TYPE_EXTERN))) { printk(KERN_ERR "omapdsp: illegal mmap buffer address(0x%p) or "