From patchwork Tue Oct 8 05:10:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Salter X-Patchwork-Id: 281325 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 461DD2C036B for ; Tue, 8 Oct 2013 16:14:00 +1100 (EST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by ozlabs.org (Postfix) with ESMTP id D0D3B2C0092 for ; Tue, 8 Oct 2013 16:13:36 +1100 (EST) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r985Cj3t013269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Oct 2013 01:12:45 -0400 Received: from deneb.redhat.com ([10.3.113.12]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r985CA0S020195; Tue, 8 Oct 2013 01:12:42 -0400 From: Mark Salter To: linux-kernel@vger.kernel.org Subject: [PATCH v2 14/14] Kconfig cleanup (PARPORT_PC dependencies) Date: Tue, 8 Oct 2013 01:10:30 -0400 Message-Id: <1381209030-351-15-git-send-email-msalter@redhat.com> In-Reply-To: <1381209030-351-1-git-send-email-msalter@redhat.com> References: <1381209030-351-1-git-send-email-msalter@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Cc: linux-mips@linux-mips.org, linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Paul Mackerras , "H. Peter Anvin" , sparclinux@vger.kernel.org, Guan Xuetao , Russell King , Helge Deller , x86@kernel.org, "James E.J. Bottomley" , Ingo Molnar , Geert Uytterhoeven , Mark Salter , Fenghua Yu , microblaze-uclinux@itee.uq.edu.au, Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Richard Henderson , Michal Simek , Tony Luck , linux-parisc@vger.kernel.org, Vineet Gupta , Ralf Baechle , Paul Mundt , linux-alpha@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S. Miller" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Remove messy dependencies from PARPORT_PC by having it depend on one Kconfig symbol (ARCH_MAY_HAVE_PC_PARPORT) and having architectures which need it, select ARCH_MAY_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_MAY_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 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: Ingo Molnar CC: "H. Peter Anvin" CC: x86@kernel.org Acked-by: Ralf Baechle --- drivers/parport/Kconfig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/parport/Kconfig b/drivers/parport/Kconfig index 70694ce..a079b18 100644 --- a/drivers/parport/Kconfig +++ b/drivers/parport/Kconfig @@ -31,13 +31,17 @@ menuconfig PARPORT If unsure, say Y. +config ARCH_MAY_HAVE_PC_PARPORT + bool + help + Select this config option from the architecture Kconfig if + the architecture may 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_MAY_HAVE_PC_PARPORT ---help--- You should say Y here if you have a PC-style parallel port. All