linux-stable/drivers/dma/sh
Arnd Bergmann 7d3beab16d dmaengine: shdmac: avoid unused variable warnings
This driver uses '#ifdef CONFIG_ARCH_SHMOBILE' and '#ifdef CONFIG_ARM'
interchangeably in its sh_dmae_probe function, which causes a build
warning when building for ARM without also enabling shmobile:

dma/sh/shdmac.c: In function sh_dmae_probe:
dma/sh/shdmac.c:696:6: warning: unused variable errirq [-Wunused-variable]
dma/sh/shdmac.c:695:16: warning: unused variable irqflags [-Wunused-variable]
dma/sh/shdmac.c: At top level:
dma/sh/shdmac.c:447:20: warning: sh_dmae_err defined but not used [-Wunused-function]

This changes all the #ifdef to test for CONFIG_ARCH_SHMOBILE to
avoid that warning. An earlier patch from Laurent had fixed the warning
for non-ARM case, but it still remained present in ARM randconfig builds.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 52d6a5ee10 ("DMA: shdma: Fix warnings due to declared but unused symbols")
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2015-04-17 23:45:06 +05:30
..
Kconfig dmaengine: usb-dmac: Add Renesas USB DMA Controller (USB-DMAC) driver 2015-04-02 12:57:32 +05:30
Makefile dmaengine: usb-dmac: Add Renesas USB DMA Controller (USB-DMAC) driver 2015-04-02 12:57:32 +05:30
rcar-audmapp.c dmaengine: Remove .owner field for driver 2014-11-06 11:54:18 +05:30
rcar-dmac.c dmaengine: rcar-dmac: Disable channel 0 when using IOMMU 2015-02-16 09:33:35 +05:30
rcar-hpbdma.c dmaengine: rcar-hpbdma: tidyup residue_granularity 2015-01-25 22:37:05 -08:00
shdma-arm.h dmaengine: shdma: Use defines instead of hardcoded numbers 2014-07-15 18:02:29 +09:00
shdma-base.c dmaengine: sh: Split device_control 2014-12-22 12:32:16 +05:30
shdma-of.c dmaengine: Remove .owner field for driver 2014-11-06 11:54:18 +05:30
shdma-r8a73a4.c DMA: shdma: add r8a73a4 DMAC data to the device ID table 2013-08-27 14:26:21 +05:30
shdma.h dmaengine: sh: Rework Kconfig and Makefile 2014-07-31 17:15:45 +05:30
shdmac.c dmaengine: shdmac: avoid unused variable warnings 2015-04-17 23:45:06 +05:30
sudmac.c dmaengine: Remove .owner field for driver 2014-11-06 11:54:18 +05:30
usb-dmac.c dmaengine: usb-dmac: Fix dereferencing freed memory 'desc' 2015-04-17 23:28:48 +05:30