From d90c3eb31535e0a1b7b5528ad2011e26f4b9a79a Mon Sep 17 00:00:00 2001 From: Mark Salter Date: Mon, 7 Oct 2013 22:21:18 -0400 Subject: Kconfig cleanup (PARPORT_PC dependencies) Remove messy dependencies from PARPORT_PC by having it depend on one Kconfig symbol (ARCH_MIGHT_HAVE_PC_PARPORT) and having architectures which need it, select ARCH_MIGHT_HAVE_PC_PARPORT in arch/*/Kconfig. New architectures are unlikely to need PARPORT_PC, so this avoids having an ever growing list of architectures to exclude. Those architectures which do select ARCH_MIGHT_HAVE_PC_PARPORT in this patch are the ones which have an asm/parport.h (or use the generic version). Signed-off-by: Mark Salter Acked-by: Ingo Molnar CC: Richard Henderson CC: linux-alpha@vger.kernel.org CC: Vineet Gupta CC: Russell King CC: linux-arm-kernel@lists.infradead.org CC: Tony Luck CC: Fenghua Yu CC: linux-ia64@vger.kernel.org CC: Geert Uytterhoeven CC: linux-m68k@lists.linux-m68k.org CC: Michal Simek CC: microblaze-uclinux@itee.uq.edu.au CC: Ralf Baechle CC: linux-mips@linux-mips.org CC: "James E.J. Bottomley" CC: Helge Deller CC: linux-parisc@vger.kernel.org CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: linuxppc-dev@lists.ozlabs.org CC: Paul Mundt CC: linux-sh@vger.kernel.org CC: "David S. Miller" CC: sparclinux@vger.kernel.org CC: Guan Xuetao CC: Thomas Gleixner CC: "H. Peter Anvin" CC: x86@kernel.org diff --git a/drivers/parport/Kconfig b/drivers/parport/Kconfig index 70694ce..f536685 100644 --- a/drivers/parport/Kconfig +++ b/drivers/parport/Kconfig @@ -31,13 +31,17 @@ menuconfig PARPORT If unsure, say Y. +config ARCH_MIGHT_HAVE_PC_PARPORT + bool + help + Select this config option from the architecture Kconfig if + the architecture might have PC parallel port hardware. + if PARPORT config PARPORT_PC tristate "PC-style hardware" - depends on (!SPARC64 || PCI) && !SPARC32 && !M32R && !FRV && !S390 && \ - (!M68K || ISA) && !MN10300 && !AVR32 && !BLACKFIN && \ - !XTENSA && !CRIS && !H8300 + depends on ARCH_MIGHT_HAVE_PC_PARPORT ---help--- You should say Y here if you have a PC-style parallel port. All -- cgit v0.10.2