There does not seem to be any good reasons for ignoring the return value of
the nwl_dsi_mode_set() function.
Fixes: 44cfc6233447 ("drm/bridge: Add NWL MIPI DSI host controller support")
Cc: [email protected]
Signed-off-by: Esben Haabendal <[email protected]>
---
drivers/gpu/drm/bridge/nwl-dsi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c
index 3fd41212933c..e90588299c5e 100644
--- a/drivers/gpu/drm/bridge/nwl-dsi.c
+++ b/drivers/gpu/drm/bridge/nwl-dsi.c
@@ -884,7 +884,9 @@ nwl_dsi_bridge_mode_set(struct drm_bridge *bridge,
}
/* Step 2 from DSI reset-out instructions */
- nwl_dsi_mode_set(dsi);
+ ret = nwl_dsi_mode_set(dsi);
+ if (ret < 0)
+ goto runtime_put;
/* Step 3 from DSI reset-out instructions */
ret = reset_control_deassert(dsi->rst_esc);
--
2.55.0