OMAPDSS: Fix omap_dss_find_output_by_port_node() port refcount decrement
authorJyri Sarha <jsarha@ti.com>
Fri, 7 Aug 2015 11:04:30 +0000 (14:04 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 10 Aug 2015 09:22:40 +0000 (12:22 +0300)
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>
drivers/video/fbdev/omap2/dss/dss-of.c

index c8c065d92b592437e06c1cf47ec177a0dabb7066..bf407b6ba15ca0002166a0704124eeda0fb2052e 100644 (file)
@@ -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;