From mboxrd@z Thu Jan 1 00:00:00 1970 From: linus.walleij@linaro.org (Linus Walleij) Date: Wed, 19 Jun 2013 21:17:35 +0200 Subject: [PATCH v2 2/2] gpio-rcar: Remove #ifdef CONFIG_OF around OF-specific sections In-Reply-To: <1371551389-5493-3-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1371551389-5493-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> <1371551389-5493-3-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Jun 18, 2013 at 12:29 PM, Laurent Pinchart wrote: > All functions and data types used by OF-specific code paths are declared > in 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 Acked-by: Linus Walleij Yours, Linus Walleij