summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/986lcd-m/mainboard.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-02 22:49:51 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:06:30 +0000
commitf8a5eb2e4afc190214ba5f1766998a1812f69a40 (patch)
treeaa8b375900a20bd721ceb113fe335110e47684de /src/mainboard/kontron/986lcd-m/mainboard.c
parent0b7813fe97121eb7cb9c0b8ac59e604e9f613679 (diff)
mainboard: Use read_int_option()
Change-Id: I9273b90b6a21b8f52fa42d9ff03a9b56eec9fcbf Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47137 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/kontron/986lcd-m/mainboard.c')
-rw-r--r--src/mainboard/kontron/986lcd-m/mainboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainboard/kontron/986lcd-m/mainboard.c b/src/mainboard/kontron/986lcd-m/mainboard.c
index 9aed0cdf2f..f13731bcf2 100644
--- a/src/mainboard/kontron/986lcd-m/mainboard.c
+++ b/src/mainboard/kontron/986lcd-m/mainboard.c
@@ -136,11 +136,10 @@ static void mainboard_init(void *chip_info)
struct device *dev;
for (i = 1; i <= 3; i++) {
- int ethernet_disable = 0;
char cmos_option_name[] = "ethernetx";
snprintf(cmos_option_name, sizeof(cmos_option_name),
"ethernet%01d", i);
- get_option(&ethernet_disable, cmos_option_name);
+ int ethernet_disable = get_int_option(cmos_option_name, 0);
if (!ethernet_disable)
continue;
printk(BIOS_DEBUG, "Disabling Ethernet NIC #%d\n", i);