mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -857,10 +857,10 @@ static int venc_probe_of(struct platform_device *pdev)
|
||||||
of_node_put(ep);
|
of_node_put(ep);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
of_node_put(ep);
|
of_node_put(ep);
|
||||||
|
return r;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* VENC HW IP initialisation */
|
/* VENC HW IP initialisation */
|
||||||
|
|
Loading…
Add table
Reference in a new issue