From 3c3607d7e9d12a4bc5590fdf9462cffd41990d99 Mon Sep 17 00:00:00 2001 From: Hiroshi DOYU Date: Mon, 30 Jul 2007 14:04:03 +0300 Subject: [PATCH] DSPGW: Use ALIGN macro instead of homemade one Signed-off-by: Hiroshi DOYU Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/dsp/task.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 " -- 2.41.1