pcspkr: Cleanup Kconfig dependencies
Ralf Baechle [Wed, 1 Jun 2011 18:05:09 +0000 (19:05 +0100)]
Lenghty lists of the kind "depends on ARCH1 || ARCH2 ... || ARCH123" are
usually either wrong or too coarse grained.  Or plain an ugly sin.

[ tglx: Fixed up amigaone ]

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linux-alpha@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Gerhard Pircher <gerhard_pircher@gmx.net>
Link: http://lkml.kernel.org/r/20110601180610.984881988@duck.linux-mips.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

arch/alpha/Kconfig
arch/mips/Kconfig
arch/powerpc/platforms/amigaone/Kconfig
arch/powerpc/platforms/chrp/Kconfig
arch/powerpc/platforms/prep/Kconfig
arch/powerpc/platforms/pseries/Kconfig
arch/x86/Kconfig
init/Kconfig

index 60219bf..ca2da8d 100644 (file)
@@ -6,6 +6,7 @@ config ALPHA
        select HAVE_OPROFILE
        select HAVE_SYSCALL_WRAPPERS
        select HAVE_IRQ_WORK
+       select HAVE_PCSPKR_PLATFORM
        select HAVE_PERF_EVENTS
        select HAVE_DMA_ATTRS
        select HAVE_GENERIC_HARDIRQS
index 653da62..bf35bb6 100644 (file)
@@ -5,6 +5,7 @@ config MIPS
        select HAVE_IDE
        select HAVE_OPROFILE
        select HAVE_IRQ_WORK
+       select HAVE_PCSPKR_PLATFORM
        select HAVE_PERF_EVENTS
        select PERF_USE_VMALLOC
        select HAVE_ARCH_KGDB
index 0224767..128de25 100644 (file)
@@ -8,7 +8,7 @@ config AMIGAONE
        select NOT_COHERENT_CACHE
        select CHECK_CACHE_COHERENCY
        select DEFAULT_UIMAGE
-       select PCSPKR_PLATFORM
+       select HAVE_PCSPKR_PLATFORM
        help
        Select AmigaOne for the following machines:
        - AmigaOne SE/Teron CX (G3 only)
index bc0b0ef..d3cdab5 100644 (file)
@@ -1,6 +1,7 @@
 config PPC_CHRP
        bool "Common Hardware Reference Platform (CHRP) based machines"
        depends on 6xx
+       select HAVE_PCSPKR_PLATFORM
        select MPIC
        select PPC_I8259
        select PPC_INDIRECT_PCI
index bf8330e..f0536c7 100644 (file)
@@ -1,6 +1,7 @@
 config PPC_PREP
        bool "PowerPC Reference Platform (PReP) based machines"
        depends on 6xx && BROKEN
+       select HAVE_PCSPKR_PLATFORM
        select MPIC
        select PPC_I8259
        select PPC_INDIRECT_PCI
index 71af4c5..05cf476 100644 (file)
@@ -1,6 +1,7 @@
 config PPC_PSERIES
        depends on PPC64 && PPC_BOOK3S
        bool "IBM pSeries & new (POWER5-based) iSeries"
+       select HAVE_PCSPKR_PLATFORM
        select MPIC
        select PCI_MSI
        select PPC_XICS
index e6060a1..2dd95b5 100644 (file)
@@ -20,6 +20,7 @@ config X86
        select HAVE_UNSTABLE_SCHED_CLOCK
        select HAVE_IDE
        select HAVE_OPROFILE
+       select HAVE_PCSPKR_PLATFORM
        select HAVE_PERF_EVENTS
        select HAVE_IRQ_WORK
        select HAVE_IOREMAP_PROT
index 2d2ef44..6f0e9d5 100644 (file)
@@ -999,15 +999,19 @@ config ELF_CORE
        help
          Enable support for generating core dumps. Disabling saves about 4k.
 
+
 config PCSPKR_PLATFORM
        bool "Enable PC-Speaker support" if EXPERT
-       depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES
+       depends on HAVE_PCSPKR_PLATFORM
        select I8253_LOCK
        default y
        help
           This option allows to disable the internal PC-Speaker
           support, saving some memory.
 
+config HAVE_PCSPKR_PLATFORM
+       bool
+
 config BASE_FULL
        default y
        bool "Enable full-sized data structures for core" if EXPERT