summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinmux.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-07-21 15:25:27 +0900
committerLinus Walleij <linus.walleij@linaro.org>2015-07-27 14:44:33 +0200
commite324957096dbf5bbf1491231c9912c3f5d0bc216 (patch)
treecc1ab1ac80e2d12624722a9cea23577122696be1 /drivers/pinctrl/pinmux.c
parent2b38ca6d1aaf9149f1286c93b131f3e62c3ac63b (diff)
downloadlinux-e324957096dbf5bbf1491231c9912c3f5d0bc216.tar.gz
linux-e324957096dbf5bbf1491231c9912c3f5d0bc216.tar.bz2
linux-e324957096dbf5bbf1491231c9912c3f5d0bc216.zip
pinctrl: use dev_err() to show message in pinmux_func_name_to_selector()
Use dev_err() rather than pr_err() to display the error message. pinctrl_dev_get_name(pctldev) is no longer necessary because dev_err() shows which device the message is related to. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinmux.c')
-rw-r--r--drivers/pinctrl/pinmux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c
index e7ae890dcf1a..67e08cb315c4 100644
--- a/drivers/pinctrl/pinmux.c
+++ b/drivers/pinctrl/pinmux.c
@@ -322,8 +322,7 @@ static int pinmux_func_name_to_selector(struct pinctrl_dev *pctldev,
selector++;
}
- pr_err("%s does not support function %s\n",
- pinctrl_dev_get_name(pctldev), function);
+ dev_err(pctldev->dev, "function '%s' not supported\n", function);
return -EINVAL;
}