mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
drm/panel: otm8009a: Set backlight parent to panel device
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: 12a6cbd4f3
("drm/panel: otm8009a: Use new backlight API")
Signed-off-by: James Cowgill <james.cowgill@blaize.com>
Cc: stable@vger.kernel.org
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230412173450.199592-1-james.cowgill@blaize.com
This commit is contained in:
parent
5dd45b6674
commit
ab4f869fba
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
|
||||||
DRM_MODE_CONNECTOR_DSI);
|
DRM_MODE_CONNECTOR_DSI);
|
||||||
|
|
||||||
ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev),
|
ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev),
|
||||||
dsi->host->dev, ctx,
|
dev, ctx,
|
||||||
&otm8009a_backlight_ops,
|
&otm8009a_backlight_ops,
|
||||||
NULL);
|
NULL);
|
||||||
if (IS_ERR(ctx->bl_dev)) {
|
if (IS_ERR(ctx->bl_dev)) {
|
||||||
|
|
Loading…
Reference in a new issue