summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sun4i/sun4i_framebuffer.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-02-17 11:13:24 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-03-07 22:15:14 +0100
commit92caf9bede544d4f26c183bf7e5b390b5d80a66e (patch)
treebce658ee93140266068bb3d8f179e905269eb533 /drivers/gpu/drm/sun4i/sun4i_framebuffer.c
parentca39b449f6d03e8235969f12f5dd25b8eb4304d6 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_framebuffer.c')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_framebuffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_framebuffer.c b/drivers/gpu/drm/sun4i/sun4i_framebuffer.c
index 2c3beff8b53e..9872e0fc03b0 100644
--- a/drivers/gpu/drm/sun4i/sun4i_framebuffer.c
+++ b/drivers/gpu/drm/sun4i/sun4i_framebuffer.c
@@ -48,5 +48,4 @@ void sun4i_framebuffer_free(struct drm_device *drm)
struct sun4i_drv *drv = drm->dev_private;
drm_fbdev_cma_fini(drv->fbdev);
- drm_mode_config_cleanup(drm);
}