drm: omapdrm: venc: Return error code on OF parsing failure
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>
This commit is contained in:
parent
9dd894d5dc
commit
18cbe723a6
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue