diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-07-21 08:25:27 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-07-27 14:44:33 +0200 |
commit | e324957096dbf5bbf1491231c9912c3f5d0bc216 (patch) | |
tree | cc1ab1ac80e2d12624722a9cea23577122696be1 /drivers/pinctrl/pinmux.c | |
parent | pinctrl: use dev_err() to show message in pinctrl_register_one_pin() (diff) | |
download | linux-e324957096dbf5bbf1491231c9912c3f5d0bc216.tar.xz 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.c | 3 |
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; } |