Commit b27ff5c1 authored by Wei Yongjun's avatar Wei Yongjun Committed by Sam Ravnborg

drm/panel: otm8009a: Drop unnessary backlight_device_unregister()

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

Fixes: 12a6cbd4 ("drm/panel: otm8009a: Use new backlight API")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200618134650.44311-1-weiyongjun1@huawei.com
parent 24cfbec9
...@@ -479,7 +479,6 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi) ...@@ -479,7 +479,6 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
if (ret < 0) { if (ret < 0) {
dev_err(dev, "mipi_dsi_attach failed. Is host ready?\n"); dev_err(dev, "mipi_dsi_attach failed. Is host ready?\n");
drm_panel_remove(&ctx->panel); drm_panel_remove(&ctx->panel);
backlight_device_unregister(ctx->bl_dev);
return ret; return ret;
} }
......
Markdown is supported
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