intel/fsp_bd82x6x: Use correct type pointer for mainboard_smi_gpi

mainboard_smi_gpi has recently been updated to take a u32 argument from a
u16, but the patch introducing the fsp_bd82x6x support has been verified
on a master before this change, thus resulting in a 'cast from incompatible
type' error. Update the pointer to the correct size argument.

Change-Id: I9d62ee43f7c8ed774898f54d29a87cf463b76e91
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/4479
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
Alexandru Gagniuc 2013-12-04 19:32:23 -06:00
parent 6a7dd08b16
commit 55fa7f5c5f
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ static void southbridge_smi_gpe0(unsigned int node, smm_state_save_area_t *state
static void southbridge_smi_gpi(unsigned int node, smm_state_save_area_t *state_save) static void southbridge_smi_gpi(unsigned int node, smm_state_save_area_t *state_save)
{ {
void (*mainboard_gpi)(u16 gpi_sts) = mainboard_smi_gpi; void (*mainboard_gpi)(u32 gpi_sts) = mainboard_smi_gpi;
u16 reg16; u16 reg16;
reg16 = inw(pmbase + ALT_GP_SMI_STS); reg16 = inw(pmbase + ALT_GP_SMI_STS);
outw(reg16, pmbase + ALT_GP_SMI_STS); outw(reg16, pmbase + ALT_GP_SMI_STS);