rtc, rx8025: fix Coding Style
[oweals/u-boot.git] / drivers / rtc / ds1306.c
index 7dd3e19028e217b7a5664276c5cd9e8251f983ef..02d617e09c92df3f678bc21e7f5f553b7056b4ed 100644 (file)
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2002 SIXNET, dge@sixnetio.com.
  *
  * (C) Copyright 2004, Li-Pro.Net <www.li-pro.net>
  * Stephan Linz <linz@li-pro.net>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -20,8 +19,6 @@
 #include <rtc.h>
 #include <spi.h>
 
-#if defined(CONFIG_CMD_DATE)
-
 #define        RTC_SECONDS             0x00
 #define        RTC_MINUTES             0x01
 #define        RTC_HOURS               0x02
@@ -438,5 +435,3 @@ static void rtc_write (unsigned char reg, unsigned char val)
 }
 
 #endif /* end of code exclusion (see #ifdef CONFIG_SXNI855T above) */
-
-#endif