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 /drivers/gpu/drm/tegra | |
parent | drm/tegra: dc: Reset state's active_changed field (diff) | |
download | linux-332bbe7003badae01fed55b11820fcd467b3bbf4.tar.xz linux-332bbe7003badae01fed55b11820fcd467b3bbf4.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-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 * |