common: Move old EEPROM functions into a new header
[oweals/u-boot.git] / drivers / rtc / davinci.c
index f862e2f951c451e1d7213e8d468232bcb262c281..b6930bd839476b8b46982c5945c19e1ad977e06d 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2011 DENX Software Engineering GmbH
  * Heiko Schocher <hs@denx.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
 #include <command.h>
@@ -10,7 +9,6 @@
 #include <asm/io.h>
 #include <asm/davinci_rtc.h>
 
-#if defined(CONFIG_CMD_DATE)
 int rtc_get(struct rtc_time *tmp)
 {
        struct davinci_rtc *rtc = (struct davinci_rtc *)DAVINCI_RTC_BASE;
@@ -80,4 +78,3 @@ void rtc_reset(void)
        /* run RTC counter */
        writel(0x01, &rtc->ctrl);
 }
-#endif