diff options
author | Thierry Reding <treding@nvidia.com> | 2015-01-28 15:03:31 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-02-19 14:21:47 +0100 |
commit | 332bbe7003badae01fed55b11820fcd467b3bbf4 (patch) | |
tree | 02deb2437ec7d2977582b4b0c8f9d9ad9a5335eb | |
parent | 567a3cd1d75e3f282759af3bd05a7369daef2b2a (diff) |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index ec84bd486561..2fd229366bb2 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 * |