pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
Subsystems (2)
PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
From: Dong Aisheng <[email protected]>
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.
---
Hopefully it can catch 3.5.
--- drivers/pinctrl/pinctrl-imx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/pinctrl/pinctrl-imx.c +2 -0
@@ -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 ; }
Signature · 1 line
1.7.0.4
PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
Quoted 8 lines · Dong Aisheng
From: Dong Aisheng <[email protected]>
Fix regression for commit
3a86a5f8(pinctrl: pinctrl-imx: free allocatedpinctrl_mapstructure only once and use kernel facilities forIMX_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.
Quoted 7 lines
Signed-off-by Dong Aisheng <[email protected]>---
Hopefully it can catch 3.5.--- drivers/pinctrl/pinctrl-imx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Ping.
Regards
Dong Aisheng
PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
Quoted 9 lines · Dong Aisheng
Quoted 8 lines · Dong Aisheng
From: Dong Aisheng <[email protected]>
Fix regression for commit
3a86a5f8(pinctrl: pinctrl-imx: free allocatedpinctrl_mapstructure only once and use kernel facilities forIMX_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.
Quoted 9 lines
Quoted 7 lines
Signed-off-by Dong Aisheng <[email protected]>---
Hopefully it can catch 3.5.--- drivers/pinctrl/pinctrl-imx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)Ping.
Hi Linus,
Can you help merge this?
Regards
Dong Aisheng
PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
Quoted 17 lines · Dong Aisheng
Quoted 16 lines · Dong Aisheng
Quoted 15 lines · Dong Aisheng
From: Dong Aisheng <[email protected]>
Fix regression for commit
3a86a5f8(pinctrl: pinctrl-imx: free allocatedpinctrl_mapstructure only once and use kernel facilities forIMX_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 <[email protected]>---
Hopefully it can catch 3.5.--- drivers/pinctrl/pinctrl-imx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Quoted 5 lines
Quoted 2 lines
Ping.
Hi Linus,
Can you help merge this?
OK applied it, we'll see if I can get it to Torvalds in time...
Yours,
Linus Walleij