aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2020-06-18 13:46:50 +0000
committerSam Ravnborg <sam@ravnborg.org>2020-06-20 12:23:41 +0200
commitb27ff5c187dd18cdc0b78ad5f5a78069d168c860 (patch)
tree3b26a6b18c4c5fd6b6fb2de040dccdec8163325b /drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
parentdrm/dp: DRM DP helper for reading Ignore MSA from DPCD (diff)
downloadlinux-dev-b27ff5c187dd18cdc0b78ad5f5a78069d168c860.tar.xz
linux-dev-b27ff5c187dd18cdc0b78ad5f5a78069d168c860.zip
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") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200618134650.44311-1-weiyongjun1@huawei.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-orisetech-otm8009a.c')
-rw-r--r--drivers/gpu/drm/panel/panel-orisetech-otm8009a.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
index 895ee3d1371e..d956522f32ee 100644
--- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
+++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
@@ -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;
}