From: Yangtao Li Date: Tue, 20 Nov 2018 13:30:40 +0000 (-0500) Subject: sbus: char: add of_node_put() X-Git-Tag: v4.14.90~26 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=923e09c74a9ca2761d3fa5f2c31b497360138244;p=users%2Fjedix%2Flinux-maple.git sbus: char: add of_node_put() [ Upstream commit 87d81a23e24f24ebe014891e8bdf3ff8785031e8 ] use of_node_put() to release the refcount. Signed-off-by: Yangtao Li Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c index f32765d3cbd89..db761aca86676 100644 --- a/drivers/sbus/char/display7seg.c +++ b/drivers/sbus/char/display7seg.c @@ -221,6 +221,7 @@ static int d7s_probe(struct platform_device *op) dev_set_drvdata(&op->dev, p); d7s_device = p; err = 0; + of_node_put(opts); out: return err;