Skip to content

Commit

Permalink
drm/pl111: add of_node_put()
Browse files Browse the repository at this point in the history
of_find_node_by_path() acquires a reference to the node returned by it
and that reference needs to be dropped by its caller.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181121131723.22431-1-tiny.windzz@gmail.com
  • Loading branch information
Yangtao Li authored and Eric Anholt committed Nov 28, 2018
1 parent 08f73d6 commit 45fdfdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/pl111/pl111_vexpress.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ int pl111_vexpress_clcd_init(struct device *dev,
}
}

of_node_put(root);

/*
* If there is a coretile HDLCD and it has a driver,
* do not mux the CLCD on the motherboard to the DVI.
Expand Down

0 comments on commit 45fdfdb

Please sign in to comment.