drm/imx: ipuv3-crtc: Return error if ipu_plane_init() fails for primary plane
authorLiu Ying <Ying.Liu@freescale.com>
Fri, 6 Nov 2015 14:42:45 +0000 (22:42 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 19 Nov 2015 11:51:39 +0000 (12:51 +0100)
commita7ed3c2b151e7581ed6022d0fe65903ccb502dc5
treeef9a93abd4409b5ad465ecc0a7656adf574e1cae
parent4389559980599ad99f39a004d6e9aaf9c2180ab8
drm/imx: ipuv3-crtc: Return error if ipu_plane_init() fails for primary plane

For primary plane initialization failure cases, ipu_plane_init() may return
a pointer encoded by ERR_PTR(). So, we should bailout instead of using that
pointer blindly.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/ipuv3-crtc.c