summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/bd82x6x
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-07-17 12:22:43 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-08-11 17:10:08 +0000
commit96719adda3f5e96cc5af537f3d9c70ae75073b46 (patch)
tree6fc7ab1279509dae46eca94cbe38c62d3dc1d24b /src/southbridge/intel/bd82x6x
parentaf0d4bce65df277b56e495892dff1c712ed76ddd (diff)
azalia: Get rid of "return {-1,0}
Use 'enum cb_err' instead of {-1,0}. Change-Id: Icea33ea3e6a5e3c7bbfedc29045026cd722ac23e Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83503 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'src/southbridge/intel/bd82x6x')
-rw-r--r--src/southbridge/intel/bd82x6x/azalia.c3
1 files changed, 2 insertions, 1 deletions
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 <device/mmio.h>
#include <delay.h>
#include <device/azalia_device.h>
+#include <types.h>
#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. */