drm/sun4i: Fix up error path cleanup for master bind function
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Feb 2017 03:13:25 +0000 (11:13 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:15:14 +0000 (22:15 +0100)
commit9d56defb44b15427f4342c543a70fb7886fc06f5
tree32532a4714834d91e7f54f9848ec894ce8080139
parent92caf9bede544d4f26c183bf7e5b390b5d80a66e
drm/sun4i: Fix up error path cleanup for master bind function

The master bind function calls numerous drm functions which initialize
underlying structures. It also tries to bind the various components
of the display pipeline, some of which may add additional drm objects.

This patch adds proper cleanup functions in the error path of the
master bind function.

This requires the patch "drm/sun4i: Move drm_mode_config_cleanup call
to main driver", which splits out drm_mode_config_cleanup from
sun4i_framebuffer_free so we can call it separately.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_drv.c