summaryrefslogtreecommitdiff
path: root/src/lib/reg_script.c
diff options
context:
space:
mode:
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;