From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Wed, 1 Jun 2011 09:26:31 +0100 Subject: [PATCH] gpio: ep93xx: move driver to drivers/gpio In-Reply-To: References: <201105311249.30372.hartleys@visionengravers.com> Message-ID: <20110601082631.GC3660@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, May 31, 2011 at 05:28:26PM -0600, Grant Likely wrote: > On Tue, May 31, 2011 at 4:37 PM, H Hartley Sweeten > wrote: > > On Tuesday, May 31, 2011 1:41 PM, Grant Likely wrote: > >> On Tue, May 31, 2011 at 1:49 PM, H Hartley Sweeten wrote: > >>> The GPIO driver should reside in drivers/gpio. > >>> > >>> Signed-off-by: H Hartley Sweeten > >>> Cc: Ryan Mallon > >>> Cc: Grant Likely > >>> > >>> --- > >>> > >>> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > >>> index 342d634..7307302 100644 > >>> --- a/drivers/gpio/Kconfig > >>> +++ b/drivers/gpio/Kconfig > >>> @@ -86,6 +86,13 @@ config GPIO_IT8761E > >>> ? ? ? ?help > >>> ? ? ? ? ?Say yes here to support GPIO functionality of IT8761E super I/O chip. > >>> > >>> +config GPIO_EP93XX > >>> + ? ? ? bool "Cirrus EP93xx GPIO support" > >>> + ? ? ? depends on ARCH_EP93XX > >>> + ? ? ? default y > >>> + ? ? ? help > >>> + ? ? ? ? Say yes here to support the Cirrus EP93xx GPIO peripheral. > >>> + > >> > >> Do you really want a user-visible Kconfig symbol here? ?If it cannot > >> be built as a module, then I suspect that for most on-chip gpio > >> controllers they should just be enabled unconditionally on the SoC's > >> Kconfig symbol. > > > > Grant, > > > > No, I a user-visible symbol is not needed. ?Should I change this to: > > > > +config GPIO_EP93XX > > + ? ? ? bool > > + ? ? ? depends on ARCH_EP93XX > > + ? ? ? default y > > > > Or like the Samsung drivers, without the visibility: > > > > +config GPIO_EP93XX > > + ? ? ? bool > > + ? ? ? depends on ARM > > + ? ? ? default y if ARCH_EP93XX > > I like the former. Even better is: config GPIO_EP93XX def_bool y depends on ARCH_EP93XX