Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6266f4b1 authored by Jyri Sarha's avatar Jyri Sarha Committed by Tomi Valkeinen
Browse files

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: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 2b55cb3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;