diff options
author | Chen-Yu Tsai <wens@csie.org> | 2017-02-17 11:13:24 +0800 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-03-07 22:15:14 +0100 |
commit | 92caf9bede544d4f26c183bf7e5b390b5d80a66e (patch) | |
tree | bce658ee93140266068bb3d8f179e905269eb533 /drivers/gpu/drm/sun4i/sun4i_framebuffer.c | |
parent | ca39b449f6d03e8235969f12f5dd25b8eb4304d6 (diff) | |
download | op-kernel-dev-92caf9bede544d4f26c183bf7e5b390b5d80a66e.zip op-kernel-dev-92caf9bede544d4f26c183bf7e5b390b5d80a66e.tar.gz |
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.c | 1 |
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 2c3beff..9872e0f 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); } |