diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-10-10 08:31:53 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-11-02 11:51:28 -0500 |
commit | 64f7aed83d776956d68afd5dad8bdc7824a5b843 (patch) | |
tree | d938e2479609dbe899f2342da2544bf3fe3198a4 | |
parent | 9887e2d9da7f8e5a4dc883ba3156874efe10eb95 (diff) |
drm/exynos: propagate plane initialization errors
In case of error during plane initialization load callback
incorrectly return success, this patch fixes it.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 510d7cbb79a5..23fbad5a504a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c | |||
@@ -87,8 +87,11 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) | |||
87 | 87 | ||
88 | plane = exynos_plane_init(dev, possible_crtcs, | 88 | plane = exynos_plane_init(dev, possible_crtcs, |
89 | DRM_PLANE_TYPE_OVERLAY); | 89 | DRM_PLANE_TYPE_OVERLAY); |
90 | if (IS_ERR(plane)) | 90 | if (!IS_ERR(plane)) |
91 | goto err_mode_config_cleanup; | 91 | continue; |
92 | |||
93 | ret = PTR_ERR(plane); | ||
94 | goto err_mode_config_cleanup; | ||
92 | } | 95 | } |
93 | 96 | ||
94 | /* init kms poll for handling hpd */ | 97 | /* init kms poll for handling hpd */ |