mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
dmaengine: mmp-tdma: fix terminate_all return code
In a recent cleanup, the mmp_tdma_terminate_all function was
introduced but does not set a proper return value. Almost
no slave driver uses that return value, but if one does, the
result will be undefined, which the compiler warns about:
dma/mmp_tdma.c: In function 'mmp_tdma_terminate_all':
dma/mmp_tdma.c:474:1: warning: no return statement in function returning non-void [-Wreturn-type]
This changes the driver to return zero, like most other
drivers do.
Signed-off-by: Arnd Bergmann <[email protected]>
Fixes: f43a6fd400 ("dmaengine: mmp-tdma: Split device_control")
Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
2f56eaff20
commit
3c20ba5fb5
1 changed files with 2 additions and 0 deletions
|
|
@ -471,6 +471,8 @@ static int mmp_tdma_terminate_all(struct dma_chan *chan)
|
|||
mmp_tdma_disable_chan(chan);
|
||||
/* disable interrupt */
|
||||
mmp_tdma_enable_irq(tdmac, false);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mmp_tdma_config(struct dma_chan *chan,
|
||||
|
|
|
|||
Loading…
Reference in a new issue