drm/sun4i: Move drm_mode_config_cleanup call to main driver
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Feb 2017 03:13:24 +0000 (11:13 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:15:14 +0000 (22:15 +0100)
commit92caf9bede544d4f26c183bf7e5b390b5d80a66e
treebce658ee93140266068bb3d8f179e905269eb533
parentca39b449f6d03e8235969f12f5dd25b8eb4304d6
drm/sun4i: Move drm_mode_config_cleanup call to main driver

drm_mode_config_cleanup is the complement of drm_mode_config_init, which
is called in the bind function of sun4i_drv. drm_mode_config_cleanup
should be put in the unbind function to match.

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
drivers/gpu/drm/sun4i/sun4i_framebuffer.c