diff options
Diffstat (limited to 'src/southbridge/intel/i82801jx/azalia.c')
-rw-r--r-- | src/southbridge/intel/i82801jx/azalia.c | 6 |
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] */ |