Skip to content

Commit

Permalink
OMAPDSS: Fix omap_dss_find_output_by_port_node() port refcount decrement
Browse files Browse the repository at this point in the history
Fix omap_dss_find_output_by_port_node() port parameter refcount
decrementation. The only user of dss_of_port_get_parent_device()
function is omap_dss_find_output_by_port_node() and it assumes the
refcount of the port parameter is not decremented by the call.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Jyri Sarha authored and Tomi Valkeinen committed Aug 10, 2015
1 parent 2b55cb3 commit 6266f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/dss/dss-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct device_node *dss_of_port_get_parent_device(struct device_node *port)
if (!port)
return NULL;

np = of_get_next_parent(port);
np = of_get_parent(port);

for (i = 0; i < 2 && np; ++i) {
struct property *prop;
Expand Down

0 comments on commit 6266f4b

Please sign in to comment.