summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig2018-07-30 09:37:21 +0200
committerMichael Ellerman2018-08-03 12:09:00 +0200
commit06832fc004815b4b43628d21fc81715e8e7cadff (patch)
treed2c8e9d73df893ebd2ac197bc9d3e4c0b0c4c857 /arch/powerpc/Kconfig
parentpowerpc/4xx: Fix error return path in ppc4xx_msi_probe() (diff)
downloadkernel-qcow2-linux-06832fc004815b4b43628d21fc81715e8e7cadff.tar.gz
kernel-qcow2-linux-06832fc004815b4b43628d21fc81715e8e7cadff.tar.xz
kernel-qcow2-linux-06832fc004815b4b43628d21fc81715e8e7cadff.zip
powerpc: Do not redefine NEED_DMA_MAP_STATE
kernel/dma/Kconfig already defines NEED_DMA_MAP_STATE, just select it from CONFIG_PPC using the same condition as an if guard. Signed-off-by: Christoph Hellwig <hch@lst.de> [mpe: Move it under PPC] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/Kconfig')
-rw-r--r--arch/powerpc/Kconfig4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 5eb4d969afbf..ee38fce075ee 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -226,6 +226,7 @@ config PPC
select IRQ_DOMAIN
select IRQ_FORCED_THREADING
select MODULES_USE_ELF_RELA
+ select NEED_DMA_MAP_STATE if PPC64 || NOT_COHERENT_CACHE
select NEED_SG_DMA_LENGTH
select NO_BOOTMEM
select OF
@@ -885,9 +886,6 @@ config ZONE_DMA
bool
default y
-config NEED_DMA_MAP_STATE
- def_bool (PPC64 || NOT_COHERENT_CACHE)
-
config GENERIC_ISA_DMA
bool
depends on ISA_DMA_API