summaryrefslogtreecommitdiff
path: root/src/include/device/pnp_ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/device/pnp_ops.h')
-rw-r--r--src/include/device/pnp_ops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/device/pnp_ops.h b/src/include/device/pnp_ops.h
index 9086fdf67c..61d05a86ad 100644
--- a/src/include/device/pnp_ops.h
+++ b/src/include/device/pnp_ops.h
@@ -19,7 +19,7 @@
#include <arch/io.h>
#include <device/pnp_type.h>
-#ifdef __SIMPLE_DEVICE__
+#if ENV_PNP_SIMPLE_DEVICE
static __always_inline void pnp_write_config(
pnp_devfn_t dev, uint8_t reg, uint8_t value)
@@ -82,6 +82,6 @@ void pnp_set_drq(pnp_devfn_t dev, unsigned int index, unsigned int drq)
pnp_write_config(dev, index, drq & 0xff);
}
-#endif /* __SIMPLE_DEVICE__ */
+#endif
#endif