Skip to content

Commit

Permalink
dmaengine: ste_dma: fix incompatible pointer type warns
Browse files Browse the repository at this point in the history
drivers/dma/ste_dma40.c:2627:3: warning: 'return' with a value, in function returning void [enabled by default]
drivers/dma/ste_dma40.c: In function 'd40_ops_init':
drivers/dma/ste_dma40.c:2869:28: warning: assignment from incompatible pointer type [enabled by default]

The function prototype expects return type 'int' whereas these where void

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Vinod Koul committed Dec 22, 2014
1 parent f67bcc4 commit 35e639d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/dma/ste_dma40.c
Original file line number Diff line number Diff line change
Expand Up @@ -2616,7 +2616,7 @@ static void d40_issue_pending(struct dma_chan *chan)
spin_unlock_irqrestore(&d40c->lock, flags);
}

static void d40_terminate_all(struct dma_chan *chan)
static int d40_terminate_all(struct dma_chan *chan)
{
unsigned long flags;
struct d40_chan *d40c = container_of(chan, struct d40_chan, chan);
Expand Down Expand Up @@ -2644,6 +2644,7 @@ static void d40_terminate_all(struct dma_chan *chan)
d40c->busy = false;

spin_unlock_irqrestore(&d40c->lock, flags);
return 0;
}

static int
Expand Down

0 comments on commit 35e639d

Please sign in to comment.