summaryrefslogtreecommitdiff
path: root/src/drivers/pc80
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/pc80')
-rw-r--r--src/drivers/pc80/tpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/pc80/tpm.c b/src/drivers/pc80/tpm.c
index c7b50816be..9a4fc096ff 100644
--- a/src/drivers/pc80/tpm.c
+++ b/src/drivers/pc80/tpm.c
@@ -278,7 +278,7 @@ static u32 tis_probe(void)
u16 vid, did;
int i;
- if (vendor_dev_id)
+ if (car_get_var(vendor_dev_id))
return 0; /* Already probed. */
didvid = tpm_read(0, TIS_REG_DID_VID);
@@ -287,7 +287,7 @@ static u32 tis_probe(void)
return TPM_DRIVER_ERR;
}
- vendor_dev_id = didvid;
+ car_set_var(vendor_dev_id, didvid);
vid = didvid & 0xffff;
did = (didvid >> 16) & 0xffff;