From 96719adda3f5e96cc5af537f3d9c70ae75073b46 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Wed, 17 Jul 2024 12:22:43 +0200 Subject: azalia: Get rid of "return {-1,0} Use 'enum cb_err' instead of {-1,0}. Change-Id: Icea33ea3e6a5e3c7bbfedc29045026cd722ac23e Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/83503 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- src/southbridge/intel/bd82x6x/azalia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/southbridge/intel/bd82x6x/azalia.c') diff --git a/src/southbridge/intel/bd82x6x/azalia.c b/src/southbridge/intel/bd82x6x/azalia.c index ddaa8a1bb0..4eeb3b5cf4 100644 --- a/src/southbridge/intel/bd82x6x/azalia.c +++ b/src/southbridge/intel/bd82x6x/azalia.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "chip.h" #include "pch.h" @@ -16,7 +17,7 @@ static int codec_detect(u8 *base) { u8 reg8; - if (azalia_exit_reset(base) < 0) + if (azalia_exit_reset(base) != CB_SUCCESS) goto no_codec; /* Write back the value once reset bit is set. */ -- cgit v1.2.3