diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2019-06-11 11:04:42 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2019-08-23 05:55:33 +0300 |
commit | a4ec848910a32c0a1e35504088d579c6e2a017f4 (patch) | |
tree | 5c45df3f9840b35e485ed2734338277f62f9ba33 /drivers/gpu/drm/nouveau | |
parent | dffa487822d1ff8f44817124d8f2927057a57775 (diff) | |
download | linux-a4ec848910a32c0a1e35504088d579c6e2a017f4.tar.xz |
drm/nouveau/kms/nv50-: use __drm_atomic_helper_plane_reset()
We have some of this open-coded already, use the helper to prevent problems
when adding (for example) support for the alpha property.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/wndw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/wndw.c b/drivers/gpu/drm/nouveau/dispnv50/wndw.c index c8d078629722..f671fea8b26d 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wndw.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndw.c @@ -538,9 +538,8 @@ nv50_wndw_reset(struct drm_plane *plane) if (plane->state) plane->funcs->atomic_destroy_state(plane, plane->state); - plane->state = &asyw->state; - plane->state->plane = plane; - plane->state->rotation = DRM_MODE_ROTATE_0; + + __drm_atomic_helper_plane_reset(plane, &asyw->state); } static void |