Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b37106b authored by Yangtao Li's avatar Yangtao Li Committed by Greg Kroah-Hartman
Browse files

drivers/sbus/char: add of_node_put()



[ Upstream commit 6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100 ]

use of_node_put() to release the refcount.

Signed-off-by: default avatarYangtao Li <tiny.windzz@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 923e09c7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -910,8 +910,10 @@ static void envctrl_init_i2c_child(struct device_node *dp,
			for (len = 0; len < PCF8584_MAX_CHANNELS; ++len) {
				pchild->mon_type[len] = ENVCTRL_NOMON;
			}
			of_node_put(root_node);
			return;
		}
		of_node_put(root_node);
	}

	/* Get the monitor channels. */