diff mbox

dmaengine: nbpfaxi: don't build this driver where it cannot be used

Message ID Pine.LNX.4.64.1408061633570.2046@axis700.grange (mailing list archive)
State Accepted
Commit cfc6abc3f1ee
Delegated to: Vinod Koul
Headers show

Commit Message

Guennadi Liakhovetski Aug. 6, 2014, 2:35 p.m. UTC
Although this driver doesn't have any explicit compile-time architecture
dependencies, it is better not to bloat kernels on those platforms, where
this driver isn't needed, unless a compile test is being performed.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---

I'm not sure how distros create their default kernel configurations, but 
maybe you're right and it's better to not bloat kernels needlessly. 
Otherwise this patch is optional.

 drivers/dma/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Vinod Koul Aug. 7, 2014, 1:58 p.m. UTC | #1
On Wed, Aug 06, 2014 at 04:35:41PM +0200, Guennadi Liakhovetski wrote:
> Although this driver doesn't have any explicit compile-time architecture
> dependencies, it is better not to bloat kernels on those platforms, where
> this driver isn't needed, unless a compile test is being performed.
Applied, thanks
diff mbox

Patch

diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index 901818c..6c3692d 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -386,6 +386,7 @@  config DMA_SUN6I
 config NBPFAXI_DMA
 	tristate "Renesas Type-AXI NBPF DMA support"
 	select DMA_ENGINE
+	depends on ARM || COMPILE_TEST
 	help
 	  Support for "Type-AXI" NBPF DMA IPs from Renesas