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)
committerPeter Rosin <peda@axentia.se>
Fri, 3 Mar 2017 09:50:28 +0000 (10:50 +0100)
commit2e1e4949f9dfb053122785cd73540bb1e61f768b
tree2e6d819dec257db0c19af0e95b25fc1d72bc449d
parentc470abd4fde40ea6a0846a2beab642a578c0b8cd
i2c: add missing of_node_put in i2c_mux_del_adapters

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().

Cc: stable@vger.kernel.org
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>
drivers/i2c/i2c-mux.c