summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2021-12-09 15:58:34 +0200
committerJani Nikula <jani.nikula@intel.com>2021-12-09 15:58:34 +0200
commit01dd1fa26b85167cd19b04b10e015aba3e243d08 (patch)
tree3c6f9d8531e9ff60f56c7d978c1f8493599d3c88 /drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
parentfd2b94a5cb0ff4bb163cdc4afaede6527eec5f7e (diff)
parentc8a04cbeedbc9f71c475141baa656f14f4879792 (diff)
Merge drm/drm-next into drm-intel-next
Get the dependencies for merging drm-privacy-screen support. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/panel/panel-ronbo-rb070d30.c')
-rw-r--r--drivers/gpu/drm/panel/panel-ronbo-rb070d30.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
index a3782830ae3c..1fb579a574d9 100644
--- a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
+++ b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
@@ -199,7 +199,13 @@ static int rb070d30_panel_dsi_probe(struct mipi_dsi_device *dsi)
dsi->format = MIPI_DSI_FMT_RGB888;
dsi->lanes = 4;
- return mipi_dsi_attach(dsi);
+ ret = mipi_dsi_attach(dsi);
+ if (ret < 0) {
+ drm_panel_remove(&ctx->panel);
+ return ret;
+ }
+
+ return 0;
}
static int rb070d30_panel_dsi_remove(struct mipi_dsi_device *dsi)