]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
DSPGW: Use ALIGN macro instead of homemade one
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Mon, 30 Jul 2007 11:04:03 +0000 (14:04 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:18:24 +0000 (02:18 -0700)
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dsp/task.c

index 0e2b5c78048ba8fcda3fa0a34910a8cedddbea5f..2b2ab76189f6548783f4debc9d32f6d9882642a5 100644 (file)
@@ -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 "