diff options
author | Hyungwon Hwang <human.hwang@samsung.com> | 2015-04-07 09:19:43 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-04-12 22:39:41 -0400 |
commit | d1222842c1c7c2760ebd412238d9bb6234e6742c (patch) | |
tree | c619a859e83f05571c1945a14740c9e792b9d943 | |
parent | 643c3024a5ee2bf74ee25c8dd03bcd287f3b2833 (diff) |
drm/exynos: fimd: check whether exynos_drm_crtc_create succeed or not
>From the commit "drm/exynos: fix the execution order in FIMD
initialization" (598285bfdce46d7c47632a2ba4b980f60be4a677), the error
checking code is removed improperly. This patch fix the regression.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index f0390411bb20..bf29a44cf77b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -1018,6 +1018,8 @@ static int fimd_bind(struct device *dev, struct device *master, void *data) | |||
1018 | ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, | 1018 | ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base, |
1019 | ctx->pipe, EXYNOS_DISPLAY_TYPE_LCD, | 1019 | ctx->pipe, EXYNOS_DISPLAY_TYPE_LCD, |
1020 | &fimd_crtc_ops, ctx); | 1020 | &fimd_crtc_ops, ctx); |
1021 | if (IS_ERR(ctx->crtc)) | ||
1022 | return PTR_ERR(ctx->crtc); | ||
1021 | 1023 | ||
1022 | if (ctx->display) | 1024 | if (ctx->display) |
1023 | exynos_drm_create_enc_conn(drm_dev, ctx->display); | 1025 | exynos_drm_create_enc_conn(drm_dev, ctx->display); |