Skip to contentSkip to conversation

drm/panel: otm8009a: Drop unnessary backlight_device_unregister()

PATCH In review Wei Yongjun 2 participants 2 messages Jun 18, 2020 – Jun 20, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panel: otm8009a: Drop unnessary backlight_device_unregister()

It's not necessary to unregister backlight device which registered with devm_backlight_device_register().

Fixes 12a6cbd4f3f1 ("drm/panel: otm8009a: Use new backlight API")
---
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +0 -1
index 895ee3d1371e..d956522f32ee 100644
@@ -479,7 +479,6 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
 	if (ret < 0) {
 		dev_err(dev, "mipi_dsi_attach failed. Is host ready?\n");
 		drm_panel_remove(&ctx->panel);
-		backlight_device_unregister(ctx->bl_dev);
 		return ret;
 	}
 
#1 lore raw

Hi Wei.

Quoted 6 lines · Wei Yongjun

It's not necessary to unregister backlight device which registered with devm_backlight_device_register().

Fixes 12a6cbd4f3f1 ("drm/panel: otm8009a: Use new backlight API")

Thanks, pushed to drm-misc-next.

Sam

Quoted 22 lines
---
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +0 -1
index 895ee3d1371e..d956522f32ee 100644
@@ -479,7 +479,6 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
 	if (ret < 0) {
 		dev_err(dev, "mipi_dsi_attach failed. Is host ready?\n");
 		drm_panel_remove(&ctx->panel);
-		backlight_device_unregister(ctx->bl_dev);
 		return ret;
 	}
 

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel