From: Dong Aisheng Date: Thu, 21 Jun 2012 10:10:35 +0000 (+0800) Subject: pinctrl: pinctrl-imx: only print debug message when DEBUG is defined X-Git-Tag: android-x86-4.4-r1~2744^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a6e7360b22f2360d7640f99051415d49cebeb908;p=android-x86%2Fkernel.git 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 Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c index dd6d93aa5334..90c837f469a6 100644 --- a/drivers/pinctrl/pinctrl-imx.c +++ b/drivers/pinctrl/pinctrl-imx.c @@ -474,7 +474,9 @@ static int __devinit imx_pinctrl_parse_groups(struct device_node *np, grp->configs[j] = config & ~IMX_PAD_SION; } +#ifdef DEBUG IMX_PMX_DUMP(info, grp->pins, grp->mux_mode, grp->configs, grp->npins); +#endif return 0; }