[PATCH 2/2] gpio-rcar: Remove #ifdef CONFIG_OF around OF-specific sections
Simon Horman
horms at verge.net.au
Tue Jun 18 04:02:03 EDT 2013
On Mon, Jun 17, 2013 at 09:21:08PM +0200, Laurent Pinchart wrote:
> On Monday 17 June 2013 23:19:07 Sergei Shtylyov wrote:
> > Hello.
> >
> > On 06/17/2013 11:15 PM, Laurent Pinchart wrote:
> > > All functions and data types used by OF-specific code paths are declared
> > > in <linux/of.h> regardless of CONFIG_OF. Replace the #ifdef CONFIG_OF
> > > guard with a if(IS_SELECTED(CONFIG_OF)) and let the compiler optimize
> >
> > You're using IS_ENABLED() actually.
>
> Oops. We should fix gcc to check the commit messages :-)
>
> Simon, could you fix this while applying, or should I resubmit ?
Please re-spin, thanks.
More information about the linux-arm-kernel
mailing list