summaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm/rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sandbox/include/asm/rtc.h')
-rw-r--r--arch/sandbox/include/asm/rtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/include/asm/rtc.h b/arch/sandbox/include/asm/rtc.h
index 025cd6c67c..bf3ac5ea1e 100644
--- a/arch/sandbox/include/asm/rtc.h
+++ b/arch/sandbox/include/asm/rtc.h
@@ -40,7 +40,7 @@ enum {
* @reg: Register values
*/
struct sandbox_i2c_rtc_plat_data {
-#if CONFIG_IS_ENABLED(OF_PLATDATA)
+#if CONFIG_IS_ENABLED(OF_PLATDATA) && IS_ENABLED(CONFIG_RTC_SANDBOX)
struct dtd_sandbox_i2c_rtc_emul dtplat;
#endif
long base_time;