Commit 12ae57aa authored by Wei Yongjun's avatar Wei Yongjun Committed by Daniel Vetter

drm/arm: mali-dp: Fix error return code in malidp_bind()

Fix to return error code -EINVAL from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 3c31760e ('drm/arm: mali-dp: Set crtc.port to the port
instead of the endpoint')
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Acked-by: default avatarBrian Starkey <brian.starkey@arm.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1469672066-13401-1-git-send-email-weiyj.lk@gmail.com
parent 1a9d71f8
...@@ -360,8 +360,10 @@ static int malidp_bind(struct device *dev) ...@@ -360,8 +360,10 @@ static int malidp_bind(struct device *dev)
/* Set the CRTC's port so that the encoder component can find it */ /* Set the CRTC's port so that the encoder component can find it */
ep = of_graph_get_next_endpoint(dev->of_node, NULL); ep = of_graph_get_next_endpoint(dev->of_node, NULL);
if (!ep) if (!ep) {
ret = -EINVAL;
goto port_fail; goto port_fail;
}
malidp->crtc.port = of_get_next_parent(ep); malidp->crtc.port = of_get_next_parent(ep);
ret = component_bind_all(dev, drm); ret = component_bind_all(dev, drm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment