Commit 3c3607d7 authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Tony Lindgren

DSPGW: Use ALIGN macro instead of homemade one

Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 024765d0
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
#include "ipbuf.h" #include "ipbuf.h"
#include "proclist.h" #include "proclist.h"
#define is_aligned(adr,align) (!((adr)&((align)-1)))
/* /*
* devstate: task device state machine * devstate: task device state machine
* NOTASK: task is not attached. * NOTASK: task is not attached.
...@@ -493,8 +491,8 @@ static int dsp_task_config(struct dsptask *task, u8 tid) ...@@ -493,8 +491,8 @@ static int dsp_task_config(struct dsptask *task, u8 tid)
/* mmap buffer configuration check */ /* mmap buffer configuration check */
if ((task->map_length > 0) && if ((task->map_length > 0) &&
((!is_aligned((unsigned long)task->map_base, PAGE_SIZE)) || ((!ALIGN((unsigned long)task->map_base, PAGE_SIZE)) ||
(!is_aligned(task->map_length, PAGE_SIZE)) || (!ALIGN(task->map_length, PAGE_SIZE)) ||
(dsp_mem_type(task->map_base, task->map_length) != MEM_TYPE_EXTERN))) { (dsp_mem_type(task->map_base, task->map_length) != MEM_TYPE_EXTERN))) {
printk(KERN_ERR printk(KERN_ERR
"omapdsp: illegal mmap buffer address(0x%p) or " "omapdsp: illegal mmap buffer address(0x%p) or "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment