drm/arm: mali-dp: Fix error return code in malidp_bind()
authorWei Yongjun <weiyj.lk@gmail.com>
Thu, 28 Jul 2016 02:14:26 +0000 (02:14 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Jul 2016 10:59:56 +0000 (12:59 +0200)
commit12ae57aab43880eac500c43590e26d9d4411961b
tree64275091f1018697f8dc9a3156b70318f3bd4850
parent1a9d71f84c8d6f981bc598398ddbbec4ee25e3c7
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: 3c31760e760c ('drm/arm: mali-dp: Set crtc.port to the port
instead of the endpoint')
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1469672066-13401-1-git-send-email-weiyj.lk@gmail.com
drivers/gpu/drm/arm/malidp_drv.c