dma: mmp_pdma: Fix physical channel memory allocation size
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 15 Apr 2014 15:13:35 +0000 (17:13 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 2 May 2014 15:49:07 +0000 (21:19 +0530)
commit593d9c2e10bc66f1c5cf1adb5eeb709432eb616d
treeae663809b01d865620daea0870a6a43e5e6b236a
parenta2a7c176cc4ae48ec1589429ef12b89975963b48
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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_pdma.c