dmaengine/dma_slave: introduce inline wrappers
[cascardo/linux.git] / sound / soc / sh / siu_pcm.c
index 0193e59..5cfcc65 100644 (file)
@@ -130,7 +130,7 @@ static int siu_pcm_wr_set(struct siu_port *port_info,
        sg_dma_len(&sg) = size;
        sg_dma_address(&sg) = buff;
 
-       desc = siu_stream->chan->device->device_prep_slave_sg(siu_stream->chan,
+       desc = dmaengine_prep_slave_sg(siu_stream->chan,
                &sg, 1, DMA_MEM_TO_DEV, DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
        if (!desc) {
                dev_err(dev, "Failed to allocate a dma descriptor\n");
@@ -180,7 +180,7 @@ static int siu_pcm_rd_set(struct siu_port *port_info,
        sg_dma_len(&sg) = size;
        sg_dma_address(&sg) = buff;
 
-       desc = siu_stream->chan->device->device_prep_slave_sg(siu_stream->chan,
+       desc = dmaengine_prep_slave_sg(siu_stream->chan,
                &sg, 1, DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
        if (!desc) {
                dev_err(dev, "Failed to allocate dma descriptor\n");