|
@@ -1502,8 +1502,11 @@ int dw_dma_probe(struct dw_dma_chip *chip)
|
|
|
/* Force dma off, just in case */
|
|
|
dw_dma_off(dw);
|
|
|
|
|
|
+ /* Device and instance ID for IRQ and DMA pool */
|
|
|
+ snprintf(dw->name, sizeof(dw->name), "dw:dmac%d", chip->id);
|
|
|
+
|
|
|
/* Create a pool of consistent memory blocks for hardware descriptors */
|
|
|
- dw->desc_pool = dmam_pool_create("dw_dmac_desc_pool", chip->dev,
|
|
|
+ dw->desc_pool = dmam_pool_create(dw->name, chip->dev,
|
|
|
sizeof(struct dw_desc), 4, 0);
|
|
|
if (!dw->desc_pool) {
|
|
|
dev_err(chip->dev, "No memory for descriptors dma pool\n");
|
|
@@ -1514,7 +1517,7 @@ int dw_dma_probe(struct dw_dma_chip *chip)
|
|
|
tasklet_init(&dw->tasklet, dw_dma_tasklet, (unsigned long)dw);
|
|
|
|
|
|
err = request_irq(chip->irq, dw_dma_interrupt, IRQF_SHARED,
|
|
|
- "dw_dmac", dw);
|
|
|
+ dw->name, dw);
|
|
|
if (err)
|
|
|
goto err_pdata;
|
|
|
|