drm/omap: fix missing disable for unused encoder
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 3 Apr 2014 13:30:03 +0000 (16:30 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 14 Apr 2014 09:34:14 +0000 (12:34 +0300)
commitc7aef12f344459961eb1e0ba10d184816ed42d99
treeca68b7237c5a475f77bee0a2d1b47e4b97295f68
parente2f8fd74ec1bf15cb2abc1b11f7d9fa09581024e
drm/omap: fix missing disable for unused encoder

When an encoder is no longer connected to a crtc, the driver will leave
the encoder enabled.

This patch adds code to track the encoder used for a crtc, and when the
encoder changes, the old one is disabled.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/omapdrm/omap_crtc.c