drm/tilcdc: Take CRTC lock when calling tilcdc_crtc_disable()
authorJyri Sarha <jsarha@ti.com>
Wed, 7 Sep 2016 08:46:40 +0000 (11:46 +0300)
committerJyri Sarha <jsarha@ti.com>
Wed, 7 Sep 2016 12:54:42 +0000 (15:54 +0300)
commit6c94c71400fbb630549611e17b430458c1c00cf8
treeb32027199d969f60fe0b322756be453516783eea
parent7eff0410276374c560e797e7676b7111fed24a3c
drm/tilcdc: Take CRTC lock when calling tilcdc_crtc_disable()

Take CRTC lock when calling tilcdc_crtc_disable() in
tilcdc_crtc_destroy().

In theory there could still be some operation ongoing, which should
finish before destroying the CRTC. However, the main reason for
adding this is to be able to add WARNing in tilcdc_crtc_disable() if
CRTC is not locked.

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