drm/rockchip: Fix shutdown when no drm-device is set up
From: Heiko Stuebner <heiko@...> Date: Fri, 21 Feb 2025 00:29:54 +0100
Commit-Message
When the drm-driver probes, it mainly creates the component device, where all the sub-drivers (vops, hdmi, etc) hook into. This will cause the shutdown handler to get called on shutdown, even though the drm-device might not have been set up, or the component bind might have failed. So use the new component helper to check whether the drm-device is up and only then call the drm-atomic helper to release all the drm magic. This prevents failures when the drm-device is never set, or has been freed up already for example by a probe-defer during the component bind. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Statistics
- 4 lines added
- 2 lines removed