summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/bd82x6x/azalia.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/bd82x6x/azalia.c')
-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. */