]> Git Repo - linux.git/commitdiff
drm/arm: mali-dp: Fix error return code in malidp_bind()
authorWei Yongjun <[email protected]>
Thu, 28 Jul 2016 02:14:26 +0000 (02:14 +0000)
committerDaniel Vetter <[email protected]>
Thu, 28 Jul 2016 10:59:56 +0000 (12:59 +0200)
Fix to return error code -EINVAL from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 3c31760e760c ('drm/arm: mali-dp: Set crtc.port to the port
instead of the endpoint')
Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: Brian Starkey <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/arm/malidp_drv.c

index 116032216e622123c170a382d3321a46aade7f53..82171d223f2d4f469ebfeac54aeba04cab4b015a 100644 (file)
@@ -360,8 +360,10 @@ static int malidp_bind(struct device *dev)
 
        /* Set the CRTC's port so that the encoder component can find it */
        ep = of_graph_get_next_endpoint(dev->of_node, NULL);
-       if (!ep)
+       if (!ep) {
+               ret = -EINVAL;
                goto port_fail;
+       }
        malidp->crtc.port = of_get_next_parent(ep);
 
        ret = component_bind_all(dev, drm);
This page took 0.058713 seconds and 4 git commands to generate.