diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-11-05 18:38:00 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-11-21 19:39:05 +0000 |
commit | 35a047c4e5bce26bf355320ed61681bc07fefae9 (patch) | |
tree | aabd9a1270ff587ed4da78ce85fc69d239095029 /src | |
parent | baa16e9c254b10b0a7963f197beabba5b544d41c (diff) | |
download | coreboot-35a047c4e5bce26bf355320ed61681bc07fefae9.tar.gz coreboot-35a047c4e5bce26bf355320ed61681bc07fefae9.tar.bz2 coreboot-35a047c4e5bce26bf355320ed61681bc07fefae9.zip |
drivers/crb: Replace __RAMSTAGE_ guards
Change-Id: Ie2e6cdddc1edb95c442a4240267fe1fd6a11d37e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36698
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/crb/tis.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/drivers/crb/tis.c b/src/drivers/crb/tis.c index 94bfb9ef157a..b7a5df482935 100644 --- a/src/drivers/crb/tis.c +++ b/src/drivers/crb/tis.c @@ -104,8 +104,6 @@ int tis_sendrecv(const uint8_t *sendbuf, size_t sbuf_size, uint8_t *recvbuf, siz return 0; } -#ifdef __RAMSTAGE__ - static void crb_tpm_fill_ssdt(struct device *dev) { const char *path = acpi_device_path(dev); @@ -139,7 +137,7 @@ static const char *crb_tpm_acpi_name(const struct device *dev) 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 struct device_operations crb_ops = { 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 +}; |