From: Arnd Bergmann Date: Tue, 13 Jan 2015 13:31:46 +0000 (+0100) Subject: dmaengine: mmp-tdma: fix terminate_all return code X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~48^2~28^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c20ba5fb5b9e3d5e266bfab316ee10b77da88e0;p=pandora-kernel.git 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 Fixes: f43a6fd400ba6 ("dmaengine: mmp-tdma: Split device_control") Signed-off-by: Vinod Koul --- Reading git-diff-tree failed