@@ -563,11 +563,11 @@ static struct fsl_qdma_queue
563
563
/*
564
564
* Buffer for queue command
565
565
*/
566
- status_head -> cq = dma_alloc_coherent (& pdev -> dev ,
567
- sizeof (struct fsl_qdma_format ) *
568
- status_size ,
569
- & status_head -> bus_addr ,
570
- GFP_KERNEL );
566
+ status_head -> cq = dmam_alloc_coherent (& pdev -> dev ,
567
+ sizeof (struct fsl_qdma_format ) *
568
+ status_size ,
569
+ & status_head -> bus_addr ,
570
+ GFP_KERNEL );
571
571
if (!status_head -> cq ) {
572
572
devm_kfree (& pdev -> dev , status_head );
573
573
return NULL ;
@@ -1268,21 +1268,13 @@ static void fsl_qdma_cleanup_vchan(struct dma_device *dmadev)
1268
1268
1269
1269
static void fsl_qdma_remove (struct platform_device * pdev )
1270
1270
{
1271
- int i ;
1272
- struct fsl_qdma_queue * status ;
1273
1271
struct device_node * np = pdev -> dev .of_node ;
1274
1272
struct fsl_qdma_engine * fsl_qdma = platform_get_drvdata (pdev );
1275
1273
1276
1274
fsl_qdma_irq_exit (pdev , fsl_qdma );
1277
1275
fsl_qdma_cleanup_vchan (& fsl_qdma -> dma_dev );
1278
1276
of_dma_controller_free (np );
1279
1277
dma_async_device_unregister (& fsl_qdma -> dma_dev );
1280
-
1281
- for (i = 0 ; i < fsl_qdma -> block_number ; i ++ ) {
1282
- status = fsl_qdma -> status [i ];
1283
- dma_free_coherent (& pdev -> dev , sizeof (struct fsl_qdma_format ) *
1284
- status -> n_cq , status -> cq , status -> bus_addr );
1285
- }
1286
1278
}
1287
1279
1288
1280
static const struct of_device_id fsl_qdma_dt_ids [] = {
0 commit comments