projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
950707c
)
pinctrl: use dev_info instead of pr_info in pinctrl_select_state_locked
author
Richard Genoud
<
[email protected]
>
Thu, 28 Mar 2013 11:55:46 +0000
(12:55 +0100)
committer
Linus Walleij
<
[email protected]
>
Wed, 3 Apr 2013 12:20:37 +0000
(14:20 +0200)
And remove superfluous brackets.
Signed-off-by: Richard Genoud <
[email protected]
>
Reviewed-by: Stephen Warren <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/pinctrl/core.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/core.c
b/drivers/pinctrl/core.c
index bcec05b5c67eb8f3903af4601ef6f84153bb4d8d..986d0e02761c81ca3a85e4ddbb11bcd38e7304b2 100644
(file)
--- a/
drivers/pinctrl/core.c
+++ b/
drivers/pinctrl/core.c
@@
-956,9
+956,8
@@
static int pinctrl_select_state_locked(struct pinctrl *p,
break;
}
- if (ret < 0)
{
+ if (ret < 0)
goto unapply_new_state;
- }
}
p->state = state;
@@
-966,7
+965,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,