diff options
Diffstat (limited to 'drivers/gpu/drm/drm_plane_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_plane_helper.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c index b84a295230fc..2c27f6f5a668 100644 --- a/drivers/gpu/drm/drm_plane_helper.c +++ b/drivers/gpu/drm/drm_plane_helper.c | |||
@@ -381,6 +381,7 @@ EXPORT_SYMBOL(drm_primary_helper_update); | |||
381 | /** | 381 | /** |
382 | * drm_primary_helper_disable() - Helper for primary plane disable | 382 | * drm_primary_helper_disable() - Helper for primary plane disable |
383 | * @plane: plane to disable | 383 | * @plane: plane to disable |
384 | * @ctx: lock acquire context, not used here | ||
384 | * | 385 | * |
385 | * Provides a default plane disable handler for primary planes. This is handler | 386 | * Provides a default plane disable handler for primary planes. This is handler |
386 | * is called in response to a userspace SetPlane operation on the plane with a | 387 | * is called in response to a userspace SetPlane operation on the plane with a |
@@ -510,12 +511,10 @@ int drm_plane_helper_commit(struct drm_plane *plane, | |||
510 | if (plane_funcs->cleanup_fb) | 511 | if (plane_funcs->cleanup_fb) |
511 | plane_funcs->cleanup_fb(plane, plane_state); | 512 | plane_funcs->cleanup_fb(plane, plane_state); |
512 | out: | 513 | out: |
513 | if (plane_state) { | 514 | if (plane->funcs->atomic_destroy_state) |
514 | if (plane->funcs->atomic_destroy_state) | 515 | plane->funcs->atomic_destroy_state(plane, plane_state); |
515 | plane->funcs->atomic_destroy_state(plane, plane_state); | 516 | else |
516 | else | 517 | drm_atomic_helper_plane_destroy_state(plane, plane_state); |
517 | drm_atomic_helper_plane_destroy_state(plane, plane_state); | ||
518 | } | ||
519 | 518 | ||
520 | return ret; | 519 | return ret; |
521 | } | 520 | } |