linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h
@ 2015-01-13 13:25 Arnd Bergmann
  2015-01-13 13:31 ` [PATCH 2/2] dmaengine: mmp-tdma: fix terminate_all return code Arnd Bergmann
  2015-01-13 14:43 ` [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2015-01-13 13:25 UTC (permalink / raw)
  To: linux-arm-kernel

The mmp tdma driver does not actually require this header, and
we want to enable multiplatform support for MMP, which would
make it inaccessible and cause a build error.

This patch just removes the old #include.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
index a8a79b1763d5..91fb241102f7 100644
--- a/drivers/dma/mmp_tdma.c
+++ b/drivers/dma/mmp_tdma.c
@@ -19,7 +19,6 @@
 #include <linux/dmaengine.h>
 #include <linux/platform_device.h>
 #include <linux/device.h>
-#include <mach/regs-icu.h>
 #include <linux/platform_data/dma-mmp_tdma.h>
 #include <linux/of_device.h>
 #include <linux/of_dma.h>

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] dmaengine: mmp-tdma: fix terminate_all return code
  2015-01-13 13:25 [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h Arnd Bergmann
@ 2015-01-13 13:31 ` Arnd Bergmann
  2015-01-13 14:43 ` [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2015-01-13 13:31 UTC (permalink / raw)
  To: linux-arm-kernel

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 <arnd@arndb.de>
Fixes: f43a6fd400ba6 ("dmaengine: mmp-tdma: Split device_control")

diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
index 91fb241102f7..70c2fa9963cd 100644
--- a/drivers/dma/mmp_tdma.c
+++ b/drivers/dma/mmp_tdma.c
@@ -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,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h
  2015-01-13 13:25 [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h Arnd Bergmann
  2015-01-13 13:31 ` [PATCH 2/2] dmaengine: mmp-tdma: fix terminate_all return code Arnd Bergmann
@ 2015-01-13 14:43 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2015-01-13 14:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 13, 2015 at 02:25:19PM +0100, Arnd Bergmann wrote:
> The mmp tdma driver does not actually require this header, and
> we want to enable multiplatform support for MMP, which would
> make it inaccessible and cause a build error.
> 
> This patch just removes the old #include.
Applied, both thanks

-- 
~Vinod

> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> 
> diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
> index a8a79b1763d5..91fb241102f7 100644
> --- a/drivers/dma/mmp_tdma.c
> +++ b/drivers/dma/mmp_tdma.c
> @@ -19,7 +19,6 @@
>  #include <linux/dmaengine.h>
>  #include <linux/platform_device.h>
>  #include <linux/device.h>
> -#include <mach/regs-icu.h>
>  #include <linux/platform_data/dma-mmp_tdma.h>
>  #include <linux/of_device.h>
>  #include <linux/of_dma.h>
> 

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-13 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 13:25 [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h Arnd Bergmann
2015-01-13 13:31 ` [PATCH 2/2] dmaengine: mmp-tdma: fix terminate_all return code Arnd Bergmann
2015-01-13 14:43 ` [PATCH 1/2] dmaengine: mmp-tdma: don't include mach/regs-icu.h Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).