|
@@ -224,7 +224,7 @@ static void dmm_txn_append(struct dmm_txn *txn, struct pat_area *area,
|
|
|
int rows = (1 + area->y1 - area->y0);
|
|
|
int i = columns*rows;
|
|
|
|
|
|
- pat = alloc_dma(txn, sizeof(struct pat), &pat_pa);
|
|
|
+ pat = alloc_dma(txn, sizeof(*pat), &pat_pa);
|
|
|
|
|
|
if (txn->last_pat)
|
|
|
txn->last_pat->next_pa = (uint32_t)pat_pa;
|
|
@@ -735,7 +735,7 @@ static int omap_dmm_probe(struct platform_device *dev)
|
|
|
|
|
|
/* alloc engines */
|
|
|
omap_dmm->engines = kcalloc(omap_dmm->num_engines,
|
|
|
- sizeof(struct refill_engine), GFP_KERNEL);
|
|
|
+ sizeof(*omap_dmm->engines), GFP_KERNEL);
|
|
|
if (!omap_dmm->engines) {
|
|
|
ret = -ENOMEM;
|
|
|
goto fail;
|