From f424c8b80f6de3ff250126abff8b03986d1090ee Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 10 Dec 2021 23:23:42 +0100 Subject: [PATCH] soc/intel/tigerlake/fsp_params.c: Use `is_dev_enabled()` Change-Id: I3e79f637bedec0bdca1312291328b2385bd027a7 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60026 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Paul Menzel --- src/soc/intel/tigerlake/fsp_params.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/soc/intel/tigerlake/fsp_params.c b/src/soc/intel/tigerlake/fsp_params.c index 40676f1b7d..f04c3d7b5a 100644 --- a/src/soc/intel/tigerlake/fsp_params.c +++ b/src/soc/intel/tigerlake/fsp_params.c @@ -530,10 +530,7 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd) /* USB4/TBT */ for (i = 0; i < ARRAY_SIZE(params->ITbtPcieRootPortEn); i++) { dev = pcidev_on_root(SA_DEV_SLOT_TBT, i); - if (dev) - params->ITbtPcieRootPortEn[i] = dev->enabled; - else - params->ITbtPcieRootPortEn[i] = 0; + params->ITbtPcieRootPortEn[i] = is_dev_enabled(dev); } /* PCH FIVR settings override */