]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm: omapdrm: venc: Return error code on OF parsing failure
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 13 Oct 2017 14:59:04 +0000 (17:59 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 19 Dec 2017 08:32:00 +0000 (10:32 +0200)
The venc_probe_of() function has an error cleanup path that returns
success instead of an error code. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/venc.c

index d58da6f32693e6a6aae39d93d307988f08771cd2..1b0fa952b494ed06bbf16b54a59287f8d29591e5 100644 (file)
@@ -857,10 +857,10 @@ static int venc_probe_of(struct platform_device *pdev)
        of_node_put(ep);
 
        return 0;
+
 err:
        of_node_put(ep);
-
-       return 0;
+       return r;
 }
 
 /* VENC HW IP initialisation */