Karthik Ramasubramanian has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39405 )
Change subject: soc/intel/tigerlake: Fix stale device pointer usage ......................................................................
soc/intel/tigerlake: Fix stale device pointer usage
TEST=Build the mainboard.
Signed-off-by: Karthikeyan Ramasubramanian kramasub@google.com Change-Id: I43cccd32589d75a9b0c7e60f8c82b19bbe6b69a7 --- M src/soc/intel/tigerlake/fsp_params_jsl.c 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/39405/1
diff --git a/src/soc/intel/tigerlake/fsp_params_jsl.c b/src/soc/intel/tigerlake/fsp_params_jsl.c index 6cb3b67..fa36e81 100644 --- a/src/soc/intel/tigerlake/fsp_params_jsl.c +++ b/src/soc/intel/tigerlake/fsp_params_jsl.c @@ -143,7 +143,8 @@ }
/* SDCard related configuration */ - params->ScsSdCardEnabled = pcidev_path_on_root(PCH_DEVFN_SDCARD) ? dev->enabled : 0; + params->ScsSdCardEnabled = (dev = pcidev_path_on_root(PCH_DEVFN_SDCARD)) ? + dev->enabled : 0;
params->Device4Enable = config->Device4Enable;