drm: fix error found in some cases after the patch d1af5cd86997
authorClaudio Suarez <cssk@net-c.es>
Thu, 2 Dec 2021 09:51:12 +0000 (10:51 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 14 Jan 2022 13:31:54 +0000 (14:31 +0100)
commitbd672b7559efcd3ae3faf0b0e3846e30983e8ace
treed4b4ea4f83579f00ec22b344c22f2521dabc501b
parent69e630016ef4e4a1745310c446f204dc6243e907
drm: fix error found in some cases after the patch d1af5cd86997

The patch d1af5cd86997 ("drm: get rid of DRM_DEBUG_* log
calls in drm core, files drm_a*.c") fails when the drm_device
cannot be found in the parameter plane_state->crtc.
Fix it using plane_state->plane.

Reported-by: kernel test robot <oliver.sang@intel.com>
Fixes: 6e22dc358377 ("drm: get rid of DRM_DEBUG_* log calls in drm core, files drm_a*.c")
Signed-off-by: Claudio Suarez <cssk@net-c.es>
[danvet: fix Fixes: line]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/YaiXEARd8z2C463h@gineta.localdomain
(cherry picked from commit 521d459b1935628a7caa0753429f880dae2dbfc9)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
drivers/gpu/drm/drm_atomic_helper.c