Skip to content

Commit

Permalink
V4L2: mx3_camer: use dmaengine_pause() API
Browse files Browse the repository at this point in the history
The drivers should use dmaengine_pause() API instead of
accessing the device_control which will be deprecated soon

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Vinod Koul committed Oct 15, 2014
1 parent 7e606d3 commit 0aae803
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/media/platform/soc_camera/mx3_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,8 @@ static void mx3_stop_streaming(struct vb2_queue *q)
struct mx3_camera_buffer *buf, *tmp;
unsigned long flags;

if (ichan) {
struct dma_chan *chan = &ichan->dma_chan;
chan->device->device_control(chan, DMA_PAUSE, 0);
}
if (ichan)
dmaengine_pause(&ichan->dma_chan);

spin_lock_irqsave(&mx3_cam->lock, flags);

Expand Down

0 comments on commit 0aae803

Please sign in to comment.