drm/tilcdc: Flush flip-work workqueue before drm_flip_work_cleanup()
authorJyri Sarha <jsarha@ti.com>
Tue, 6 Sep 2016 19:55:33 +0000 (22:55 +0300)
committerJyri Sarha <jsarha@ti.com>
Wed, 7 Sep 2016 12:54:41 +0000 (15:54 +0300)
commit4e910c7a1860bbc22d06da2f62010ab20a19834f
treec19a0b21f5c8bb4eb59485cb55858ac41a018169
parent642e51677d29c9f21891b571be4473ec482acaf0
drm/tilcdc: Flush flip-work workqueue before drm_flip_work_cleanup()

Flush flip-work workqueue before drm_flip_work_cleanup(). It causes a
nasty warning if there is unfinished flip-work in the queue when
drm_flip_work_cleanup() is called. The flush_workqueue() has to be
called before drm_crtc_cleanup() for unref_worker() to be able to do
its job.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c