Skip to content

Commit ab4f869

Browse files
jcowgillsuperna9999
authored andcommitted
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: 12a6cbd ("drm/panel: otm8009a: Use new backlight API") Signed-off-by: James Cowgill <[email protected]> Cc: [email protected] Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 5dd45b6 commit ab4f869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/panel/panel-orisetech-otm8009a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
471471
DRM_MODE_CONNECTOR_DSI);
472472

473473
ctx->bl_dev = devm_backlight_device_register(dev, dev_name(dev),
474-
dsi->host->dev, ctx,
474+
dev, ctx,
475475
&otm8009a_backlight_ops,
476476
NULL);
477477
if (IS_ERR(ctx->bl_dev)) {

0 commit comments

Comments
 (0)