Skip to content

Commit

Permalink
powerpc: Do not redefine NEED_DMA_MAP_STATE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Michael Ellerman committed Aug 3, 2018
1 parent 6e0495c commit 06832fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 06832fc

Please sign in to comment.