Merge https://gitlab.denx.de/u-boot/custodians/u-boot-riscv
[oweals/u-boot.git] / drivers / rtc / ds1302.c
index 87ddd019168b701eb128bf17ff54dd6282f88829..189607c3e02a54f6f4d50fe48985fe47a2e1be0b 100644 (file)
@@ -8,8 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <rtc.h>
-
-#if defined(CONFIG_CMD_DATE)
+#include <linux/delay.h>
 
 /* GPP Pins */
 #define DATA           0x200
@@ -328,5 +327,3 @@ int rtc_set(struct rtc_time *tmp)
 
        return 0;
 }
-
-#endif