linux-mips
[Top] [All Lists]

[PATCH] MIPS: Add ISA_DMA_API config item

To: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: [PATCH] MIPS: Add ISA_DMA_API config item
From: Namhyung Kim <namhyung@gmail.com>
Date: Mon, 18 Oct 2010 12:55:21 +0900
Cc: linux-kernel@vger.kernel.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=JNcw9o1Dqj91UQgPSU3f91WfPNfMfuIcvufBp0ppBjk=; b=JcSGQAl7yF39ifkcrzaKZ8I9jMvnpznUqhDTUVYBSMmerVPwczOUolXNwo3s7GIXqO oK1v9K0Fz008ZhBLjwka1xsbyQxqbdtFvGGz8DtEZELTJaxLJPu9jMyCjqqgp9LqV2CA VTaic9H0MEFUDMlpP4iXxxk9yLUE51CoonpD4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=WYkVasn9n0Xw3Syjl1Rckz090JryM7emjRY9MTXpsS1wpfwxQvFDiyRUV3n6bwOhE3 9aq0G+J6ZIHe/R/Q5jXWuak3Ti4AimUmo7cTty01MTRX+MAMoxJC5l0wt/ZhePYNMDAe fnU4VQQn8hdfXmpeekjHOb8qRjpfc52VH6OGU=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Add ISA_DMA_API config item and select it when GENERIC_ISA_DMA enabled.
This fixes build failure on allmodconfig like following:

  CC      sound/isa/es18xx.o
sound/isa/es18xx.c: In function 'snd_es18xx_playback1_prepare':
sound/isa/es18xx.c:501:9: error: implicit declaration of function 
'snd_dma_program'
sound/isa/es18xx.c: In function 'snd_es18xx_playback_pointer':
sound/isa/es18xx.c:818:3: error: implicit declaration of function 
'snd_dma_pointer'
make[3]: *** [sound/isa/es18xx.o] Error 1
make[2]: *** [sound/isa/es18xx.o] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 arch/mips/Kconfig |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 5526faa..4c9f402 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -881,11 +881,15 @@ config NO_IOPORT
 config GENERIC_ISA_DMA
        bool
        select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
+       select ISA_DMA_API
 
 config GENERIC_ISA_DMA_SUPPORT_BROKEN
        bool
        select GENERIC_ISA_DMA
 
+config ISA_DMA_API
+       bool
+
 config GENERIC_GPIO
        bool
 
-- 
1.7.0.4


<Prev in Thread] Current Thread [Next in Thread>