]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-rcar: Remove #ifdef CONFIG_OF around OF-specific sections
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 18 Jun 2013 10:29:49 +0000 (12:29 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 19 Jun 2013 12:38:38 +0000 (21:38 +0900)
commitd69506893bd02fd0fd2dff49fccd5bd9b9831b47
treedc6bcb323371eea302f54db478e1d8b34c2b5fa3
parent6d5ff2d834ca695db319cc0f1d1f96eb27cfa6ad
gpio-rcar: Remove #ifdef CONFIG_OF around OF-specific sections

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_ENABLED(CONFIG_OF)) and let the compiler optimize
the unused code away.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/gpio/gpio-rcar.c