提交 d2ba65f6 编写于 作者: I Inki Dae 提交者: Inki Dae

drm/exynos: fix unnecessary resource cleanup

This patch removes unnecessary drm_mode_config_cleanup call.
Signed-off-by: NInki Dae <inki.dae@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
上级 8fa04aae
...@@ -66,7 +66,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) ...@@ -66,7 +66,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
ret = drm_create_iommu_mapping(dev); ret = drm_create_iommu_mapping(dev);
if (ret < 0) { if (ret < 0) {
DRM_ERROR("failed to create iommu mapping.\n"); DRM_ERROR("failed to create iommu mapping.\n");
goto err_crtc; goto err_free_private;
} }
drm_mode_config_init(dev); drm_mode_config_init(dev);
...@@ -136,8 +136,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) ...@@ -136,8 +136,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
err_mode_config_cleanup: err_mode_config_cleanup:
drm_mode_config_cleanup(dev); drm_mode_config_cleanup(dev);
drm_release_iommu_mapping(dev); drm_release_iommu_mapping(dev);
err_crtc: err_free_private:
drm_mode_config_cleanup(dev);
kfree(private); kfree(private);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册