summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801jx/azalia.c
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/i82801jx/azalia.c
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/i82801jx/azalia.c')
-rw-r--r--src/southbridge/intel/i82801jx/azalia.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/southbridge/intel/i82801jx/azalia.c b/src/southbridge/intel/i82801jx/azalia.c
index fa0209ae78..6b840e7d50 100644
--- a/src/southbridge/intel/i82801jx/azalia.c
+++ b/src/southbridge/intel/i82801jx/azalia.c
@@ -7,6 +7,8 @@
#include <device/pci_ops.h>
#include <device/mmio.h>
#include <device/azalia_device.h>
+#include <types.h>
+
#include "chip.h"
#include "i82801jx.h"
@@ -14,10 +16,10 @@ static int codec_detect(u8 *base)
{
u32 reg32;
- if (azalia_enter_reset(base) < 0)
+ if (azalia_enter_reset(base) != CB_SUCCESS)
goto no_codec;
- if (azalia_exit_reset(base) < 0)
+ if (azalia_exit_reset(base) != CB_SUCCESS)
goto no_codec;
/* Read in Codec location (BAR + 0xe)[2..0] */