Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36698 )
Change subject: drivers/crb: Replace __RAMSTAGE_ guards ......................................................................
drivers/crb: Replace __RAMSTAGE_ guards
Change-Id: Ie2e6cdddc1edb95c442a4240267fe1fd6a11d37e Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/drivers/crb/tis.c 1 file changed, 7 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/36698/1
diff --git a/src/drivers/crb/tis.c b/src/drivers/crb/tis.c index 94bfb9e..b7a5df4 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); @@ -139,7 +137,7 @@ return "TPM"; }
-static struct device_operations crb_ops = { +static struct device_operations __unused crb_ops = { .read_resources = DEVICE_NOOP, .set_resources = DEVICE_NOOP, #if CONFIG(HAVE_ACPI_TABLES) @@ -151,9 +149,12 @@
static void enable_dev(struct device *dev) { +#if !DEVTREE_EARLY dev->ops = &crb_ops; +#endif }
-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 +};