diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-11-02 22:29:07 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:03:02 +0000 |
commit | 38f89f37bf791496dc7add7f4d18bc0cf3115750 (patch) | |
tree | e75d95e785a29f73b711cb60a86cbbbea2c13d67 /src/mainboard/kontron/986lcd-m | |
parent | 5ddfaf08075592367aa553c8a69e17bad625f8be (diff) |
mb/**/early_init.c: Use get_int_option()
Change-Id: I460cad0cc671be830d0fa0f68a531acaea7effcc
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47134
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/kontron/986lcd-m')
-rw-r--r-- | src/mainboard/kontron/986lcd-m/early_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainboard/kontron/986lcd-m/early_init.c b/src/mainboard/kontron/986lcd-m/early_init.c index 90221981dd..ff3babb45e 100644 --- a/src/mainboard/kontron/986lcd-m/early_init.c +++ b/src/mainboard/kontron/986lcd-m/early_init.c @@ -14,9 +14,8 @@ void mainboard_lpc_decode(void) { int lpt_en = 0; - u8 val; - if (get_option(&val, "lpt") == CB_SUCCESS && val) + if (get_int_option("lpt", 0)) lpt_en = LPT_LPC_EN; /* enable LPT */ pci_update_config16(PCI_DEV(0, 0x1f, 0), LPC_EN, ~LPT_LPC_EN, lpt_en); |