pinctrl: nomadik: fix possible object reference leak
authorWangBo <wdjjwb@163.com>
Fri, 15 Feb 2019 08:01:36 +0000 (16:01 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 20 Feb 2019 09:52:34 +0000 (10:52 +0100)
commit7c6daeaf0a72b4d25427df0348ad58b878a55ce3
tree31a6f3156ceab4e7a8d222cf8d91258b730e484b
parente003ec6aa94baddc964899b5f8a62327c693babf
pinctrl: nomadik: fix possible object reference leak

The of_find_device_by_node takes a reference to the struct device
when find the match device ,we should release it when fail.

Signed-off-by: WangBo <wang.bo116@zte.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nomadik/pinctrl-nomadik.c