]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: amlogic: add missing of_node_put()
authorwen yang <yellowriver2010@hotmail.com>
Tue, 5 Feb 2019 05:07:26 +0000 (05:07 +0000)
committerKevin Hilman <khilman@baylibre.com>
Thu, 7 Feb 2019 04:03:02 +0000 (20:03 -0800)
commit99e5a8df8b3627239ecef09547931a81618d0851
treec983bb28224130d6fe49e59c84a6d8e291f872a2
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
soc: amlogic: add missing of_node_put()

The call to of_parse_phandle returns a node pointer with refcount
incremented thus it must be explicitly decremented here after the last
usage.

Signed-off-by: Wen Yang <yellowriver2010@hotmail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Fixes: d4983983d987 ("soc: amlogic: add meson-canvas driver")
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
drivers/soc/amlogic/meson-canvas.c