diff mbox

pinctrl: imx: Fix pin name in debug message.

Message ID 20140220143012.23570.63407.stgit@localhost (mailing list archive)
State New, archived
Headers show

Commit Message

Martin Fuzzey Feb. 20, 2014, 2:30 p.m. UTC
The wrong index counter was being used, causing the debug message
to show an incorrect pin name.

Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com>
---
 drivers/pinctrl/pinctrl-imx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Linus Walleij Feb. 25, 2014, 8:51 a.m. UTC | #1
On Thu, Feb 20, 2014 at 3:30 PM, Martin Fuzzey <mfuzzey@parkeon.com> wrote:

> The wrong index counter was being used, causing the debug message
> to show an incorrect pin name.
>
> Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com>

Patch applied, unless the i.MX maintainers have objections.

Yours,
Linus Walleij
diff mbox

Patch

diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c
index 4779b8e..e118fb1 100644
--- a/drivers/pinctrl/pinctrl-imx.c
+++ b/drivers/pinctrl/pinctrl-imx.c
@@ -491,7 +491,7 @@  static int imx_pinctrl_parse_groups(struct device_node *np,
 			pin->mux_mode |= IOMUXC_CONFIG_SION;
 		pin->config = config & ~IMX_PAD_SION;
 
-		dev_dbg(info->dev, "%s: %d 0x%08lx", info->pins[i].name,
+		dev_dbg(info->dev, "%s: %d 0x%08lx", info->pins[pin_id].name,
 				pin->mux_mode, pin->config);
 	}