drm/tegra: dc: Move more code into ->init()
authorThierry Reding <treding@nvidia.com>
Wed, 28 Jan 2015 14:17:44 +0000 (15:17 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Feb 2015 13:21:51 +0000 (14:21 +0100)
commit07d05cbf60ed8f06c61484d3d85c06c1aa7edf38
tree00a254eb2c8076a261f2e5754c78ccef9ff309b4
parent332bbe7003badae01fed55b11820fcd467b3bbf4
drm/tegra: dc: Move more code into ->init()

The code in tegra_crtc_prepare() really belongs in tegra_dc_init(), or
at least most of it. This fixes an issue with VBLANK handling because
tegra_crtc_prepare() would overwrite the interrupt mask register that
tegra_crtc_enable_vblank() had written to to enable VBLANK interrupts.

Tested-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c