summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-01-28 15:03:31 +0100
committerThierry Reding <treding@nvidia.com>2015-02-19 14:21:47 +0100
commit332bbe7003badae01fed55b11820fcd467b3bbf4 (patch)
tree02deb2437ec7d2977582b4b0c8f9d9ad9a5335eb
parent567a3cd1d75e3f282759af3bd05a7369daef2b2a (diff)
downloadop-kernel-dev-332bbe7003badae01fed55b11820fcd467b3bbf4.zip
op-kernel-dev-332bbe7003badae01fed55b11820fcd467b3bbf4.tar.gz
drm/tegra: dc: Wire up CRTC parent of atomic state
Store a pointer to the CRTC in its atomic state to make it easy for state handling code to get at the CRTC. Tested-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/tegra/dc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index ec84bd4..2fd2293 100644
--- a/drivers/gpu/drm/tegra/dc.c
+++ b/drivers/gpu/drm/tegra/dc.c
@@ -997,8 +997,10 @@ static void tegra_crtc_reset(struct drm_crtc *crtc)
crtc->state = NULL;
state = kzalloc(sizeof(*state), GFP_KERNEL);
- if (state)
+ if (state) {
crtc->state = &state->base;
+ crtc->state->crtc = crtc;
+ }
}
static struct drm_crtc_state *
OpenPOWER on IntegriCloud