summaryrefslogtreecommitdiff
path: root/util/dell-flash-unlock/dell_flash_unlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/dell-flash-unlock/dell_flash_unlock.c')
-rw-r--r--util/dell-flash-unlock/dell_flash_unlock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/dell-flash-unlock/dell_flash_unlock.c b/util/dell-flash-unlock/dell_flash_unlock.c
index 174a1c92..d59f5d5b 100644
--- a/util/dell-flash-unlock/dell_flash_unlock.c
+++ b/util/dell-flash-unlock/dell_flash_unlock.c
@@ -15,7 +15,7 @@
int get_fdo_status(void);
int check_lpc_decode(void);
-void ec_set_fdo();
+void ec_set_fdo(void);
void write_ec_reg(uint8_t index, uint8_t data);
void send_ec_cmd(uint8_t cmd);
int wait_ec(void);
@@ -96,6 +96,7 @@ main(int argc, char *argv[])
"You can now shutdown the system.\n");
}
}
+ sys_iopl(0);
return errno;
}
@@ -141,7 +142,7 @@ check_lpc_decode(void)
}
void
-ec_set_fdo()
+ec_set_fdo(void)
{
/* EC FDO command arguments for reference:
* 0 = Query EC FDO status