rtc: pt7c4338: Add driver model support
[oweals/u-boot.git] / drivers / rtc / m41t11.c
index fe0b5fb605b5d773916617f19844915dc2f22631..960348bb3eaa9471fdc30f6525ec71c9a8183c22 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2002
  * Andrew May, Viasat Inc, amay@viasat.com
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -30,8 +29,6 @@
 #endif
 */
 
-#if defined(CONFIG_SYS_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
-
 /* ------------------------------------------------------------------------- */
 /*
   these are simple defines for the chip local to here so they aren't too
@@ -168,4 +165,3 @@ void rtc_reset (void)
        val = val & 0x3F;/*turn off freq test keep calibration*/
        i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1);
 }
-#endif