summaryrefslogtreecommitdiffstats
path: root/rtc/ds1307.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtc/ds1307.c')
-rw-r--r--rtc/ds1307.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtc/ds1307.c b/rtc/ds1307.c
index 4b6d8acbfa..3b26a0a327 100644
--- a/rtc/ds1307.c
+++ b/rtc/ds1307.c
@@ -52,7 +52,7 @@
# define CFG_I2C_RTC_ADDR 0x68
#endif
-#if CFG_I2C_SPEED > 100000
+#if defined(CONFIG_RTC_DS1307) && (CFG_I2C_SPEED > 100000)
# error The DS1307 is specified only up to 100kHz!
#endif
OpenPOWER on IntegriCloud