Skip to content
Commit 61b694b7 authored by James Cowgill's avatar James Cowgill Committed by Greg Kroah-Hartman
Browse files

drm/panel: otm8009a: Set backlight parent to panel device

commit ab4f869f upstream.

This is the logical place to put the backlight device, and it also
fixes a kernel crash if the MIPI host is removed. Previously the
backlight device would be unregistered twice when this happened - once
as a child of the MIPI host through `mipi_dsi_host_unregister`, and
once when the panel device is destroyed.

Fixes: 12a6cbd4

 ("drm/panel: otm8009a: Use new backlight API")
Signed-off-by: default avatarJames Cowgill <james.cowgill@blaize.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230412173450.199592-1-james.cowgill@blaize.com
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8f57f3e1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment