From 38f89f37bf791496dc7add7f4d18bc0cf3115750 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 2 Nov 2020 22:29:07 +0100 Subject: mb/**/early_init.c: Use get_int_option() Change-Id: I460cad0cc671be830d0fa0f68a531acaea7effcc Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/47134 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/getac/p470/early_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mainboard/getac') diff --git a/src/mainboard/getac/p470/early_init.c b/src/mainboard/getac/p470/early_init.c index 087e279ac4..1ca9b79c1e 100644 --- a/src/mainboard/getac/p470/early_init.c +++ b/src/mainboard/getac/p470/early_init.c @@ -34,9 +34,8 @@ void mainboard_pre_raminit_config(int s3_resume) 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 */ // decode range -- cgit v1.2.3