drm/exynos: call drm_vblank_put for each queued flip event
authorImre Deak <imre.deak@intel.com>
Fri, 2 Nov 2012 11:30:48 +0000 (13:30 +0200)
committerInki Dae <daeinki@gmail.com>
Thu, 29 Nov 2012 11:30:33 +0000 (03:30 -0800)
commite1f48ee58a90ddf84f514334b5d395a358596492
treefe122bc62387c70c075a8a7e53a384878edfe4a6
parent85473328bac6170aabb5e13d2542d11d1fc4cc76
drm/exynos: call drm_vblank_put for each queued flip event

It's guaranteed that for each event on pageflip_event_list we have
called drm_vblank_get() - see exynos_drm_crtc_page_flip() - so checking
for this is redundant.

Also we need to call drm_vblank_put() for each event on the list, not
only once, otherwise we'd leak vblank references if there are multiple
events on the list.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c
drivers/gpu/drm/exynos/exynos_drm_vidi.c
drivers/gpu/drm/exynos/exynos_mixer.c