aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_mode.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2024-09-11 11:51:27 +0000
committerThomas Zimmermann <[email protected]>2024-09-13 13:41:18 +0000
commit0994ea1b279eea7fc441e3fe17739aab9db919ef (patch)
treecbc6c4b76825f52f925c63c801c7b45d2b5e5c5f /drivers/gpu/drm/ast/ast_mode.c
parentdrm/ast: vga: Inline ast_vga_connector_init() (diff)
downloadkernel-0994ea1b279eea7fc441e3fe17739aab9db919ef.tar.gz
kernel-0994ea1b279eea7fc441e3fe17739aab9db919ef.zip
drm/ast: Respect return value from CRTC init
Return an error if CRTC initialization fails. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Jocelyn Falempe <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ast/ast_mode.c')
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index 784e8ac0e668..f90fade5d681 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -1396,7 +1396,9 @@ int ast_mode_config_init(struct ast_device *ast)
if (ret)
return ret;
- ast_crtc_init(dev);
+ ret = ast_crtc_init(dev);
+ if (ret)
+ return ret;
switch (ast->tx_chip) {
case AST_TX_NONE: