i2c: add missing of_node_put in i2c_mux_del_adapters
authorQi Hou <qi.hou@windriver.com>
Fri, 3 Mar 2017 07:57:11 +0000 (15:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Mar 2017 11:14:30 +0000 (19:14 +0800)
commitac4666a7fd1aab0b4e60240ab84f9fd839900669
tree1a1c3c6bcba8d5e6d6e9944611e378eb7b825ce6
parent06996254a605913cd7c1927d0e8a89b5138e110d
i2c: add missing of_node_put in i2c_mux_del_adapters

commit 2e1e4949f9dfb053122785cd73540bb1e61f768b upstream.

Refcount of of_node is increased with of_node_get() in i2c_mux_add_adapter().
It must be decreased with of_node_put() in i2c_mux_del_adapters().

Signed-off-by: Qi Hou <qi.hou@windriver.com>
Reviewed-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/i2c-mux.c