Skip to content

Commit

Permalink
drm/exynos: fimd: check whether exynos_drm_crtc_create succeed or not
Browse files Browse the repository at this point in the history
>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>
  • Loading branch information
Hyungwon Hwang authored and Inki Dae committed Apr 13, 2015
1 parent 643c302 commit d122284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/exynos/exynos_drm_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,8 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)
ctx->crtc = exynos_drm_crtc_create(drm_dev, &exynos_plane->base,
ctx->pipe, EXYNOS_DISPLAY_TYPE_LCD,
&fimd_crtc_ops, ctx);
if (IS_ERR(ctx->crtc))
return PTR_ERR(ctx->crtc);

if (ctx->display)
exynos_drm_create_enc_conn(drm_dev, ctx->display);
Expand Down

0 comments on commit d122284

Please sign in to comment.