]> Git Repo - J-u-boot.git/blobdiff - fs/fat/fat.c
Merge commit '0344c602eadc0802776b65ff90f0a02c856cf53c' as 'lib/mbedtls/external...
[J-u-boot.git] / fs / fat / fat.c
index 14e53cf2d5a630da36d5b8c929893fa9f8620960..e2570e81676875d54911ceec27a8d1bedc1c32d5 100644 (file)
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY   LOGC_FS
 
-#include <common.h>
 #include <blk.h>
 #include <config.h>
 #include <exports.h>
@@ -1254,7 +1253,7 @@ out:
 static void __maybe_unused fat2rtc(u16 date, u16 time, struct rtc_time *tm)
 {
        tm->tm_mday = date & 0x1f;
-       tm->tm_mon = (date & 0x1e0) >> 4;
+       tm->tm_mon = (date & 0x1e0) >> 5;
        tm->tm_year = (date >> 9) + 1980;
 
        tm->tm_sec = (time & 0x1f) << 1;
This page took 0.021801 seconds and 4 git commands to generate.