diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-10-13 17:59:04 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-12-19 11:32:00 +0300 |
commit | 18cbe723a6236ff1fb98ddd927831ac2a32ef46e (patch) | |
tree | 5f3bf7dceccd763da3a6630c7c268da5306b2f3c /drivers/gpu/drm/omapdrm/dss/venc.c | |
parent | 9dd894d5dc5c1c4ddd3853d290d88d910f29582c (diff) | |
download | linux-18cbe723a6236ff1fb98ddd927831ac2a32ef46e.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/venc.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/venc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/venc.c b/drivers/gpu/drm/omapdrm/dss/venc.c index d58da6f32693..1b0fa952b494 100644 --- a/drivers/gpu/drm/omapdrm/dss/venc.c +++ b/drivers/gpu/drm/omapdrm/dss/venc.c @@ -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 */ |