[PATCH] gpio: ep93xx: move driver to drivers/gpio

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jun 1 04:26:31 EDT 2011


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
> <hartleys at visionengravers.com> 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 <hsweeten at visionengravers.com>
> >>> Cc: Ryan Mallon <ryan at bluewatersys.com>
> >>> Cc: Grant Likely <grant.likely at secretlab.ca>
> >>>
> >>> ---
> >>>
> >>> 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



More information about the linux-arm-kernel mailing list