Skip to content
Commit 21ef4b8b authored by Axel Lin's avatar Axel Lin Committed by Dan Williams
Browse files

dmaengine: use DEFINE_IDR for static initialization



We could use DEFINE_IDR for statically allocated idr
that allow us to save a few lines of code.

And also remove unneeded mutex_init() for dma_list_mutex, as
dma_list_mutex is initialized automatically by DEFINE_MUTEX().

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent d0b0c8c7
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