summaryrefslogtreecommitdiff
path: root/src/soc/intel/broadwell/pch/smihandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/broadwell/pch/smihandler.c')
-rw-r--r--src/soc/intel/broadwell/pch/smihandler.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/intel/broadwell/pch/smihandler.c b/src/soc/intel/broadwell/pch/smihandler.c
index 542b330221..262ed47a18 100644
--- a/src/soc/intel/broadwell/pch/smihandler.c
+++ b/src/soc/intel/broadwell/pch/smihandler.c
@@ -127,13 +127,12 @@ static void backlight_off(void)
static int power_on_after_fail(void)
{
- u8 s5pwr = CONFIG_MAINBOARD_POWER_FAILURE_STATE;
-
/* save and recover RTC port values */
u8 tmp70, tmp72;
tmp70 = inb(0x70);
tmp72 = inb(0x72);
- get_option(&s5pwr, "power_on_after_fail");
+ const int s5pwr = get_int_option("power_on_after_fail",
+ CONFIG_MAINBOARD_POWER_FAILURE_STATE);
outb(tmp70, 0x70);
outb(tmp72, 0x72);