diff options
Diffstat (limited to 'src/southbridge/intel/i82801gx/azalia.c')
-rw-r--r-- | src/southbridge/intel/i82801gx/azalia.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/southbridge/intel/i82801gx/azalia.c b/src/southbridge/intel/i82801gx/azalia.c index 31827e6de9..cef3dee191 100644 --- a/src/southbridge/intel/i82801gx/azalia.c +++ b/src/southbridge/intel/i82801gx/azalia.c @@ -8,7 +8,8 @@ #include <device/mmio.h> #include <delay.h> #include <device/azalia_device.h> -#include <stdint.h> +#include <types.h> + #include "chip.h" #include "i82801gx.h" @@ -16,10 +17,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] */ |