Commit 121692eb authored by Inki Dae's avatar Inki Dae Committed by Inki Dae

drm/exynos: modify goto labels to meaningful names

Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent f13bdbd1
...@@ -446,139 +446,138 @@ static int __init exynos_drm_init(void) ...@@ -446,139 +446,138 @@ static int __init exynos_drm_init(void)
#ifdef CONFIG_DRM_EXYNOS_DP #ifdef CONFIG_DRM_EXYNOS_DP
ret = platform_driver_register(&dp_driver); ret = platform_driver_register(&dp_driver);
if (ret < 0) if (ret < 0)
goto out_dp; return ret;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_DSI #ifdef CONFIG_DRM_EXYNOS_DSI
ret = platform_driver_register(&dsi_driver); ret = platform_driver_register(&dsi_driver);
if (ret < 0) if (ret < 0)
goto out_dsi; goto err_unregister_dp_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_FIMD #ifdef CONFIG_DRM_EXYNOS_FIMD
ret = platform_driver_register(&fimd_driver); ret = platform_driver_register(&fimd_driver);
if (ret < 0) if (ret < 0)
goto out_fimd; goto err_unregister_dsi_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_HDMI #ifdef CONFIG_DRM_EXYNOS_HDMI
ret = platform_driver_register(&hdmi_driver); ret = platform_driver_register(&hdmi_driver);
if (ret < 0) if (ret < 0)
goto out_hdmi; goto err_unregister_fimd_drv;
ret = platform_driver_register(&mixer_driver); ret = platform_driver_register(&mixer_driver);
if (ret < 0) if (ret < 0)
goto out_mixer; goto err_unregister_hdmi_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_VIDI #ifdef CONFIG_DRM_EXYNOS_VIDI
ret = platform_driver_register(&vidi_driver); ret = platform_driver_register(&vidi_driver);
if (ret < 0) if (ret < 0)
goto out_vidi; goto err_unregister_mixer_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_G2D #ifdef CONFIG_DRM_EXYNOS_G2D
ret = platform_driver_register(&g2d_driver); ret = platform_driver_register(&g2d_driver);
if (ret < 0) if (ret < 0)
goto out_g2d; goto err_unregister_vidi_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_FIMC #ifdef CONFIG_DRM_EXYNOS_FIMC
ret = platform_driver_register(&fimc_driver); ret = platform_driver_register(&fimc_driver);
if (ret < 0) if (ret < 0)
goto out_fimc; goto err_unregister_g2d_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_ROTATOR #ifdef CONFIG_DRM_EXYNOS_ROTATOR
ret = platform_driver_register(&rotator_driver); ret = platform_driver_register(&rotator_driver);
if (ret < 0) if (ret < 0)
goto out_rotator; goto err_unregister_fimc_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_GSC #ifdef CONFIG_DRM_EXYNOS_GSC
ret = platform_driver_register(&gsc_driver); ret = platform_driver_register(&gsc_driver);
if (ret < 0) if (ret < 0)
goto out_gsc; goto err_unregister_rotator_drv;
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_IPP #ifdef CONFIG_DRM_EXYNOS_IPP
ret = platform_driver_register(&ipp_driver); ret = platform_driver_register(&ipp_driver);
if (ret < 0) if (ret < 0)
goto out_ipp; goto err_unregister_gsc_drv;
ret = exynos_platform_device_ipp_register(); ret = exynos_platform_device_ipp_register();
if (ret < 0) if (ret < 0)
goto out_ipp_dev; goto err_unregister_ipp_drv;
#endif #endif
ret = platform_driver_register(&exynos_drm_platform_driver); ret = platform_driver_register(&exynos_drm_platform_driver);
if (ret < 0) if (ret < 0)
goto out_drm; goto err_unregister_ipp_dev;
exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1, exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1,
NULL, 0); NULL, 0);
if (IS_ERR(exynos_drm_pdev)) { if (IS_ERR(exynos_drm_pdev)) {
ret = PTR_ERR(exynos_drm_pdev); ret = PTR_ERR(exynos_drm_pdev);
goto out; goto err_unregister_drm_drv;
} }
return 0; return 0;
out: err_unregister_drm_drv:
platform_driver_unregister(&exynos_drm_platform_driver); platform_driver_unregister(&exynos_drm_platform_driver);
out_drm: err_unregister_ipp_dev:
#ifdef CONFIG_DRM_EXYNOS_IPP #ifdef CONFIG_DRM_EXYNOS_IPP
exynos_platform_device_ipp_unregister(); exynos_platform_device_ipp_unregister();
out_ipp_dev: err_unregister_ipp_drv:
platform_driver_unregister(&ipp_driver); platform_driver_unregister(&ipp_driver);
out_ipp: err_unregister_gsc_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_GSC #ifdef CONFIG_DRM_EXYNOS_GSC
platform_driver_unregister(&gsc_driver); platform_driver_unregister(&gsc_driver);
out_gsc: err_unregister_rotator_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_ROTATOR #ifdef CONFIG_DRM_EXYNOS_ROTATOR
platform_driver_unregister(&rotator_driver); platform_driver_unregister(&rotator_driver);
out_rotator: err_unregister_fimc_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_FIMC #ifdef CONFIG_DRM_EXYNOS_FIMC
platform_driver_unregister(&fimc_driver); platform_driver_unregister(&fimc_driver);
out_fimc: err_unregister_g2d_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_G2D #ifdef CONFIG_DRM_EXYNOS_G2D
platform_driver_unregister(&g2d_driver); platform_driver_unregister(&g2d_driver);
out_g2d: err_unregister_vidi_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_VIDI #ifdef CONFIG_DRM_EXYNOS_VIDI
platform_driver_unregister(&vidi_driver); platform_driver_unregister(&vidi_driver);
out_vidi: err_unregister_mixer_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_HDMI #ifdef CONFIG_DRM_EXYNOS_HDMI
platform_driver_unregister(&mixer_driver); platform_driver_unregister(&mixer_driver);
out_mixer: err_unregister_hdmi_drv:
platform_driver_unregister(&hdmi_driver); platform_driver_unregister(&hdmi_driver);
out_hdmi: err_unregister_fimd_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_FIMD #ifdef CONFIG_DRM_EXYNOS_FIMD
platform_driver_unregister(&fimd_driver); platform_driver_unregister(&fimd_driver);
out_fimd: err_unregister_dsi_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_DSI #ifdef CONFIG_DRM_EXYNOS_DSI
platform_driver_unregister(&dsi_driver); platform_driver_unregister(&dsi_driver);
out_dsi: err_unregister_dp_drv:
#endif #endif
#ifdef CONFIG_DRM_EXYNOS_DP #ifdef CONFIG_DRM_EXYNOS_DP
platform_driver_unregister(&dp_driver); platform_driver_unregister(&dp_driver);
out_dp:
#endif #endif
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment