summaryrefslogtreecommitdiff
path: root/src/lib/reg_script.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-13 10:49:20 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-14 11:16:17 +0000
commite3acc8fcf3f1cbf4a527cfcd6aa9aba9bd9d5e2b (patch)
treee3e162a29482d6b4e0928f2f440881a4e43368d9 /src/lib/reg_script.c
parent4a637802fa6fd8c532ce32e6595298e60e84f6d6 (diff)
downloadcoreboot-e3acc8fcf3f1cbf4a527cfcd6aa9aba9bd9d5e2b.tar.xz
src/: Replace some __PRE_RAM__ use
Change-Id: Iaa56e7b98aad33eeb876edd7465c56c80fd1ac18 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35398 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib/reg_script.c')
-rw-r--r--src/lib/reg_script.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c
index 50cf7b6d08..5f4fa9fa11 100644
--- a/src/lib/reg_script.c
+++ b/src/lib/reg_script.c
@@ -36,7 +36,8 @@
#endif
#define POLL_DELAY 100 /* 100us */
-#if defined(__PRE_RAM__)
+
+#ifdef __SIMPLE_DEVICE__
#define EMPTY_DEV 0
#else
#define EMPTY_DEV NULL
@@ -68,7 +69,7 @@ reg_script_get_step(struct reg_script_context *ctx)
static struct resource *reg_script_get_resource(struct reg_script_context *ctx)
{
-#if defined(__PRE_RAM__)
+#ifdef __SIMPLE_DEVICE__
return NULL;
#else
struct resource *res;