pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
authorDong Aisheng <dong.aisheng@linaro.org>
Thu, 21 Jun 2012 10:10:35 +0000 (18:10 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 14 Jul 2012 20:31:02 +0000 (22:31 +0200)
commita6e7360b22f2360d7640f99051415d49cebeb908
treede37879c4b9b37b500ef02611ebd1b92e443fc29
parentbd0a521e88aa7a06ae7aabaed7ae196ed4ad867a
pinctrl: pinctrl-imx: only print debug message when DEBUG is defined

Fix regression for commit 3a86a5f8 (pinctrl: pinctrl-imx: free allocated
pinctrl_map structure only once and use kernel facilities for IMX_PMX_DUMP)
introduced in 3.5-rc3.
With above commit, the debug code will alway be excuted.
Change to excute it only when DEBUG is defined.

Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-imx.c