From f79030c6ba066d904c0ef6ddcc2483ed60ff7731 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 2 Nov 2020 20:58:20 +0100 Subject: [PATCH] mb/asus/p8z77-m_pro: Use get_int_option() Change-Id: If75f307c862b24e9208568cdba0a0b05ab4009bf Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/47110 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/asus/p8z77-m_pro/early_init.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/mainboard/asus/p8z77-m_pro/early_init.c b/src/mainboard/asus/p8z77-m_pro/early_init.c index 4e41d01bc7..d7125d62e5 100644 --- a/src/mainboard/asus/p8z77-m_pro/early_init.c +++ b/src/mainboard/asus/p8z77-m_pro/early_init.c @@ -69,18 +69,15 @@ void mainboard_fill_pei_data(struct pei_data *pei_data) * 3 = Smart Auto : same than Auto, but if OS loads USB3 driver * and reboots, it will keep the USB3.0 speed */ - int usb3_mode = 1; - get_option(&usb3_mode, "usb3_mode"); + int usb3_mode = get_int_option("usb3_mode", 1); usb3_mode &= 0x3; /* ensure it's 0/1/2/3 only */ /* Load USB3 pre-OS xHCI driver */ - int usb3_drv = 1; - get_option(&usb3_drv, "usb3_drv"); + int usb3_drv = get_int_option("usb3_drv", 1); usb3_drv &= 0x1; /* ensure it's 0/1 only */ /* Use USB3 xHCI streams */ - int usb3_streams = 1; - get_option(&usb3_streams, "usb3_streams"); + int usb3_streams = get_int_option("usb3_streams", 1); usb3_streams &= 0x1; /* ensure it's 0/1 only */ struct pei_data pd = {