diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-10-11 21:10:38 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 10:01:07 -0600 |
commit | 3da6702f577be7249ece5799fb91cf2bf5e243fd (patch) | |
tree | 34d37be0caf67c7e47bfff5b43fe99b2a96b3808 /drivers/usb/musb/ux500_dma.c | |
parent | b1cb07cdee8f0247b1a6b3ba63ad4214ee2032a4 (diff) | |
download | linux-3da6702f577be7249ece5799fb91cf2bf5e243fd.tar.gz linux-3da6702f577be7249ece5799fb91cf2bf5e243fd.tar.bz2 linux-3da6702f577be7249ece5799fb91cf2bf5e243fd.zip |
usb: musb: ux500_dma: use dmaengine_xxx() APIs
The drivers should use dmaengine_terminate_all() or dmaengine_slave_config()
API instead of accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/ux500_dma.c')
-rw-r--r-- | drivers/usb/musb/ux500_dma.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c index 221faed9f074..734dc8408d54 100644 --- a/drivers/usb/musb/ux500_dma.c +++ b/drivers/usb/musb/ux500_dma.c @@ -121,8 +121,7 @@ static bool ux500_configure_channel(struct dma_channel *channel, slave_conf.dst_maxburst = 16; slave_conf.device_fc = false; - dma_chan->device->device_control(dma_chan, DMA_SLAVE_CONFIG, - (unsigned long) &slave_conf); + dmaengine_slave_config(dma_chan, &slave_conf); dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); @@ -246,9 +245,7 @@ static int ux500_dma_channel_abort(struct dma_channel *channel) musb_writew(epio, MUSB_RXCSR, csr); } - ux500_channel->dma_chan->device-> - device_control(ux500_channel->dma_chan, - DMA_TERMINATE_ALL, 0); + dmaengine_terminate_all(ux500_channel->dma_chan); channel->status = MUSB_DMA_STATUS_FREE; } return 0; |