aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 35889ca255e9..2ef12aa30303 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -141,16 +141,10 @@ static int exynos_drm_unload(struct drm_device *dev)
141} 141}
142 142
143static void exynos_drm_preclose(struct drm_device *dev, 143static void exynos_drm_preclose(struct drm_device *dev,
144 struct drm_file *file_priv) 144 struct drm_file *file)
145{ 145{
146 struct exynos_drm_private *dev_priv = dev->dev_private; 146 DRM_DEBUG_DRIVER("%s\n", __FILE__);
147 147
148 /*
149 * drm framework frees all events at release time,
150 * so private event list should be cleared.
151 */
152 if (!list_empty(&dev_priv->pageflip_event_list))
153 INIT_LIST_HEAD(&dev_priv->pageflip_event_list);
154} 148}
155 149
156static void exynos_drm_lastclose(struct drm_device *dev) 150static void exynos_drm_lastclose(struct drm_device *dev)