]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atmel-hlcdc: destroy properly the plane state in the reset callback
authorLudovic Desroches <ludovic.desroches@microchip.com>
Thu, 18 Dec 2025 13:26:06 +0000 (14:26 +0100)
committerManikandan Muralidharan <manikandan.m@microchip.com>
Tue, 20 Jan 2026 10:22:48 +0000 (15:52 +0530)
commit81af99cbd9e4f238011af811d544fff75641fc25
tree00c8f0d0d3629b0bf238dc7bbb9ebdc9ea5d2396
parent4bad57c21bb3569efde4dc81915b53f9a036678c
drm/atmel-hlcdc: destroy properly the plane state in the reset callback

If there is a plane state to destroy when doing a plane reset, destroy
it using the atmel_hlcdc_plane_destroy_state() function. So we call
__drm_atomic_helper_plane_destroy_state() and avoid code duplication.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Reviewed-by: Manikandan Muralidharan <manikandan.m@microchip.com>
Link: https://patch.msgid.link/20251218-lcd_cleanup_mainline-v2-8-df837aba878f@microchip.com
Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c