diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-06-18 14:42:45 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-07-16 09:39:03 +0200 |
commit | fb00de771b0c35fc42212272596ddb07bf120b21 (patch) | |
tree | 195ac14a776e7b4f2fe13b73c23a663ae8a8efdc /drivers/pinctrl/devicetree.c | |
parent | 9612327c1ffcdacc863b3baf0a3c8c9b0837ffd2 (diff) | |
download | linux-stable-fb00de771b0c35fc42212272596ddb07bf120b21.tar.gz linux-stable-fb00de771b0c35fc42212272596ddb07bf120b21.tar.bz2 linux-stable-fb00de771b0c35fc42212272596ddb07bf120b21.zip |
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>
Diffstat (limited to 'drivers/pinctrl/devicetree.c')
-rw-r--r-- | drivers/pinctrl/devicetree.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/pinctrl/devicetree.c b/drivers/pinctrl/devicetree.c index 0bbf7d71b281..fe04e748dfe4 100644 --- a/drivers/pinctrl/devicetree.c +++ b/drivers/pinctrl/devicetree.c @@ -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 *pctldev; - - pctldev = get_pinctrl_dev_from_of_node(np); - if (!pctldev) - return NULL; - - return pctldev; + return get_pinctrl_dev_from_of_node(np); } static int dt_to_map_one_config(struct pinctrl *p, const char *statename, |