Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
121692eb
Commit
121692eb
authored
Apr 17, 2014
by
Inki Dae
Committed by
Inki Dae
Jun 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/exynos: modify goto labels to meaningful names
Signed-off-by:
Inki Dae
<
inki.dae@samsung.com
>
parent
f13bdbd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/exynos/exynos_drm_drv.c
+27
-28
No files found.
drivers/gpu/drm/exynos/exynos_drm_drv.c
View file @
121692eb
...
...
@@ -446,139 +446,138 @@ static int __init exynos_drm_init(void)
#ifdef CONFIG_DRM_EXYNOS_DP
ret
=
platform_driver_register
(
&
dp_driver
);
if
(
ret
<
0
)
goto
out_dp
;
return
ret
;
#endif
#ifdef CONFIG_DRM_EXYNOS_DSI
ret
=
platform_driver_register
(
&
dsi_driver
);
if
(
ret
<
0
)
goto
out_dsi
;
goto
err_unregister_dp_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_FIMD
ret
=
platform_driver_register
(
&
fimd_driver
);
if
(
ret
<
0
)
goto
out_fimd
;
goto
err_unregister_dsi_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_HDMI
ret
=
platform_driver_register
(
&
hdmi_driver
);
if
(
ret
<
0
)
goto
out_hdmi
;
goto
err_unregister_fimd_drv
;
ret
=
platform_driver_register
(
&
mixer_driver
);
if
(
ret
<
0
)
goto
out_mixer
;
goto
err_unregister_hdmi_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_VIDI
ret
=
platform_driver_register
(
&
vidi_driver
);
if
(
ret
<
0
)
goto
out_vidi
;
goto
err_unregister_mixer_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_G2D
ret
=
platform_driver_register
(
&
g2d_driver
);
if
(
ret
<
0
)
goto
out_g2d
;
goto
err_unregister_vidi_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_FIMC
ret
=
platform_driver_register
(
&
fimc_driver
);
if
(
ret
<
0
)
goto
out_fimc
;
goto
err_unregister_g2d_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_ROTATOR
ret
=
platform_driver_register
(
&
rotator_driver
);
if
(
ret
<
0
)
goto
out_rotator
;
goto
err_unregister_fimc_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_GSC
ret
=
platform_driver_register
(
&
gsc_driver
);
if
(
ret
<
0
)
goto
out_gsc
;
goto
err_unregister_rotator_drv
;
#endif
#ifdef CONFIG_DRM_EXYNOS_IPP
ret
=
platform_driver_register
(
&
ipp_driver
);
if
(
ret
<
0
)
goto
out_ipp
;
goto
err_unregister_gsc_drv
;
ret
=
exynos_platform_device_ipp_register
();
if
(
ret
<
0
)
goto
out_ipp_de
v
;
goto
err_unregister_ipp_dr
v
;
#endif
ret
=
platform_driver_register
(
&
exynos_drm_platform_driver
);
if
(
ret
<
0
)
goto
out_drm
;
goto
err_unregister_ipp_dev
;
exynos_drm_pdev
=
platform_device_register_simple
(
"exynos-drm"
,
-
1
,
NULL
,
0
);
if
(
IS_ERR
(
exynos_drm_pdev
))
{
ret
=
PTR_ERR
(
exynos_drm_pdev
);
goto
out
;
goto
err_unregister_drm_drv
;
}
return
0
;
out
:
err_unregister_drm_drv
:
platform_driver_unregister
(
&
exynos_drm_platform_driver
);
out_drm
:
err_unregister_ipp_dev
:
#ifdef CONFIG_DRM_EXYNOS_IPP
exynos_platform_device_ipp_unregister
();
out_ipp_de
v:
err_unregister_ipp_dr
v:
platform_driver_unregister
(
&
ipp_driver
);
out_ipp
:
err_unregister_gsc_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_GSC
platform_driver_unregister
(
&
gsc_driver
);
out_gsc
:
err_unregister_rotator_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_ROTATOR
platform_driver_unregister
(
&
rotator_driver
);
out_rotator
:
err_unregister_fimc_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_FIMC
platform_driver_unregister
(
&
fimc_driver
);
out_fimc
:
err_unregister_g2d_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_G2D
platform_driver_unregister
(
&
g2d_driver
);
out_g2d
:
err_unregister_vidi_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_VIDI
platform_driver_unregister
(
&
vidi_driver
);
out_vidi
:
err_unregister_mixer_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_HDMI
platform_driver_unregister
(
&
mixer_driver
);
out_mixer
:
err_unregister_hdmi_drv
:
platform_driver_unregister
(
&
hdmi_driver
);
out_hdmi
:
err_unregister_fimd_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_FIMD
platform_driver_unregister
(
&
fimd_driver
);
out_fimd
:
err_unregister_dsi_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_DSI
platform_driver_unregister
(
&
dsi_driver
);
out_dsi
:
err_unregister_dp_drv
:
#endif
#ifdef CONFIG_DRM_EXYNOS_DP
platform_driver_unregister
(
&
dp_driver
);
out_dp:
#endif
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment