summaryrefslogtreecommitdiffstats
path: root/src/mainboard/kontron/986lcd-m
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-12-26 10:57:43 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-02 12:36:56 +0000
commitbee82ab798c542051bda684fed3921be5923c84e (patch)
tree19ac282acc5b829ebc3945a819740415748c7c46 /src/mainboard/kontron/986lcd-m
parentc5a5b369a8f27b3aa8ea63e452f1474f9ef37cd9 (diff)
downloadcoreboot-bee82ab798c542051bda684fed3921be5923c84e.tar.gz
coreboot-bee82ab798c542051bda684fed3921be5923c84e.tar.bz2
coreboot-bee82ab798c542051bda684fed3921be5923c84e.zip
Replace last uses of read_option() with get_option()
Change-Id: I63e80953195a6c524392da42b268efe3012ed41b Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37953 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/kontron/986lcd-m')
-rw-r--r--src/mainboard/kontron/986lcd-m/early_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainboard/kontron/986lcd-m/early_init.c b/src/mainboard/kontron/986lcd-m/early_init.c
index 0423b2c373e5..80ce896323d8 100644
--- a/src/mainboard/kontron/986lcd-m/early_init.c
+++ b/src/mainboard/kontron/986lcd-m/early_init.c
@@ -29,7 +29,9 @@
void mainboard_lpc_decode(void)
{
int lpt_en = 0;
- if (read_option(lpt, 0) != 0)
+ u8 val;
+
+ if (get_option(&val, "lpt") == CB_SUCCESS && val)
lpt_en = LPT_LPC_EN; /* enable LPT */
pci_update_config16(PCI_DEV(0, 0x1f, 0), LPC_EN, ~LPT_LPC_EN, lpt_en);