public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] pinctrl: use dev_info instead of pr_info in pinctrl_select_state_locked
@ 2013-03-28 11:55 Richard Genoud
  2013-03-28 11:55 ` [PATCH 2/3] pinctrl: remove superfluous optimization " Richard Genoud
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Richard Genoud @ 2013-03-28 11:55 UTC (permalink / raw)
  To: Linus Walleij, Stephen Warren; +Cc: linux-kernel, Richard Genoud

And remove superfluous brackets.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
---
If it's not too late, it can be squashed with commit:
3102a76cfbf9ac4ae0cf54c7452f7ba4292a4760
"pinctrl: disable and free setting in select_state in case of error"

 drivers/pinctrl/core.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 9b505acc..b98a275 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -912,9 +912,8 @@ static int pinctrl_select_state_locked(struct pinctrl *p,
 			break;
 		}
 
-		if (ret < 0) {
+		if (ret < 0)
 			goto unapply_new_state;
-		}
 	}
 
 	p->state = state;
@@ -922,7 +921,7 @@ static int pinctrl_select_state_locked(struct pinctrl *p,
 	return 0;
 
 unapply_new_state:
-	pr_info("Error applying setting, reverse things back\n");
+	dev_err(p->dev, "Error applying setting, reverse things back\n");
 
 	/*
 	 * If the loop stopped on the 1st entry, nothing has been enabled,
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-04-03 12:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 11:55 [PATCH 1/3] pinctrl: use dev_info instead of pr_info in pinctrl_select_state_locked Richard Genoud
2013-03-28 11:55 ` [PATCH 2/3] pinctrl: remove superfluous optimization " Richard Genoud
2013-03-28 14:58   ` Stephen Warren
2013-04-03 12:26   ` Linus Walleij
2013-03-28 11:55 ` [PATCH 3/3] pinctrl: pinctrl_select_state: set the old_state back on error Richard Genoud
2013-03-28 14:58   ` Stephen Warren
2013-04-03 12:28   ` Linus Walleij
2013-03-28 14:57 ` [PATCH 1/3] pinctrl: use dev_info instead of pr_info in pinctrl_select_state_locked Stephen Warren
2013-04-03 12:21 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox