powerpc: Fix GENERIC_ISA_DMA dependency
authorAnton Vorontsov <avorontsov@mvista.com>
Thu, 15 Jul 2010 07:38:16 +0000 (07:38 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 31 Jul 2010 04:56:31 +0000 (14:56 +1000)
On PowerPC we should always use generic ISA DMA API implementation
as there is simply no other implementation exist.

Without this patch, the following build error pops up:

  sound/built-in.o: In function 'snd_dma_pointer':
  (.text+0x74ae): undefined reference to 'dma_spin_lock'
  ...
  make: *** [.tmp_vmlinux1] Error 1

This is PPC_85xx, SMP and some sound drivers set to =y.

Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Acked-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig

index 25b28fdc6767a318f2821663b5a1af3325d4d594..4fa42038104460873107ff8d2577f7c92c680535 100644 (file)
@@ -669,7 +669,7 @@ config NEED_SG_DMA_LENGTH
 
 config GENERIC_ISA_DMA
        bool
-       depends on PPC64 || POWER4 || 6xx && !CPM2
+       depends on ISA_DMA_API
        default y
 
 config PPC_INDIRECT_PCI