habanalabs: Update CPU DMA pool label name
authorTomer Tayar <ttayar@habana.ai>
Thu, 2 May 2019 08:33:12 +0000 (11:33 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 2 May 2019 08:33:12 +0000 (11:33 +0300)
The CPU accessible DMA pool is general and not used only for PQ.
Accordingly, this patch rename the "free_cpu_pq_pool" label with
"free_cpu_accessible_dma_pool".

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c

index 9bf572a..0fa0bdd 100644 (file)
@@ -670,14 +670,14 @@ static int goya_sw_init(struct hl_device *hdev)
                dev_err(hdev->dev,
                        "Failed to add memory to CPU accessible DMA pool\n");
                rc = -EFAULT;
-               goto free_cpu_pq_pool;
+               goto free_cpu_accessible_dma_pool;
        }
 
        spin_lock_init(&goya->hw_queues_lock);
 
        return 0;
 
-free_cpu_pq_pool:
+free_cpu_accessible_dma_pool:
        gen_pool_destroy(hdev->cpu_accessible_dma_pool);
 free_cpu_pq_dma_mem:
        hdev->asic_funcs->asic_dma_free_coherent(hdev,