pinctrl: simplify of_pinctrl_get()
This commit does not change the logic at all. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
9612327c1f
commit
fb00de771b
|
@ -97,13 +97,7 @@ static int dt_remember_or_free_map(struct pinctrl *p, const char *statename,
|
||||||
|
|
||||||
struct pinctrl_dev *of_pinctrl_get(struct device_node *np)
|
struct pinctrl_dev *of_pinctrl_get(struct device_node *np)
|
||||||
{
|
{
|
||||||
struct pinctrl_dev *pctldev;
|
return get_pinctrl_dev_from_of_node(np);
|
||||||
|
|
||||||
pctldev = get_pinctrl_dev_from_of_node(np);
|
|
||||||
if (!pctldev)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
return pctldev;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dt_to_map_one_config(struct pinctrl *p, const char *statename,
|
static int dt_to_map_one_config(struct pinctrl *p, const char *statename,
|
||||||
|
|
Loading…
Reference in New Issue