Skip to content

Commit 6266f4b

Browse files
Jyri Sarhatomba
authored andcommitted
OMAPDSS: Fix omap_dss_find_output_by_port_node() port refcount decrement
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>
1 parent 2b55cb3 commit 6266f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/omap2/dss/dss-of.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct device_node *dss_of_port_get_parent_device(struct device_node *port)
9696
if (!port)
9797
return NULL;
9898

99-
np = of_get_next_parent(port);
99+
np = of_get_parent(port);
100100

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

0 commit comments

Comments
 (0)