Skip to content
Commit 593d9c2e authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Vinod Koul
Browse files

dma: mmp_pdma: Fix physical channel memory allocation size



Use sizeof(*var) instead of sizeof(type) when calling devm_k*alloc().
This avoids using the wrong type as was done to allocate the physical
channels array.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent a2a7c176
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