Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36631 )
Change subject: drivers/crb,pc80: Drop __RAMSTAGE_ guards ......................................................................
drivers/crb,pc80: Drop __RAMSTAGE_ guards
Change-Id: Ia6e161c3b4fc44292cdac692a2918c522680d60d Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/drivers/crb/tis.c M src/drivers/pc80/tpm/tis.c 2 files changed, 4 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/36631/1
diff --git a/src/drivers/crb/tis.c b/src/drivers/crb/tis.c index 94bfb9e..7cb506d 100644 --- a/src/drivers/crb/tis.c +++ b/src/drivers/crb/tis.c @@ -104,8 +104,6 @@ return 0; }
-#ifdef __RAMSTAGE__ - static void crb_tpm_fill_ssdt(struct device *dev) { const char *path = acpi_device_path(dev); @@ -154,6 +152,7 @@ dev->ops = &crb_ops; }
-struct chip_operations drivers_crb_ops = {CHIP_NAME("CRB TPM").enable_dev = enable_dev}; - -#endif /* __RAMSTAGE__ */ +struct chip_operations drivers_crb_ops = { + CHIP_NAME("CRB TPM") + .enable_dev = enable_dev +}; diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c index 5927377..47f15b9 100644 --- a/src/drivers/pc80/tpm/tis.c +++ b/src/drivers/pc80/tpm/tis.c @@ -721,8 +721,6 @@ return tis_readresponse(recvbuf, recv_len); }
-#ifdef __RAMSTAGE__ - /* * tis_setup_interrupt() * @@ -1006,5 +1004,3 @@ CHIP_NAME("LPC TPM") .enable_dev = enable_dev }; - -#endif /* __RAMSTAGE__ */