mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
2b38ca6d1a
commit
e324957096
1 changed files with 1 additions and 2 deletions
|
@ -322,8 +322,7 @@ static int pinmux_func_name_to_selector(struct pinctrl_dev *pctldev,
|
||||||
selector++;
|
selector++;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_err("%s does not support function %s\n",
|
dev_err(pctldev->dev, "function '%s' not supported\n", function);
|
||||||
pinctrl_dev_get_name(pctldev), function);
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue