]> rtime.felk.cvut.cz Git - linux-imx.git/commit
sh-pfc: Guard DT parsing with #ifdef CONFIG_OF
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 19 Jun 2013 11:26:02 +0000 (13:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Jun 2013 09:34:11 +0000 (11:34 +0200)
commit3a8d63d4b4fdfa2563b85b4a6db0119cbdb537d1
treefae57168c624e77fa256c84576c304e429ffa91d
parenta5d811bbf1c6df86cfe23948059ea614554b9f19
sh-pfc: Guard DT parsing with #ifdef CONFIG_OF

Fix a compilation error caused by pinconf_generic_parse_dt_config() not
being defined on !CONFIG_OF platforms by guarding the whole DT node
parsing code with #ifdef CONFIG_OF.

Defining a pinconf_generic_parse_dt_config() on !CONFIG_OF would have
been possible as well, but would have resulted in a larger code size on
!CONFIG_OF platforms (such as arch/sh).

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/pinctrl.c