[PATCH][MIPS] fix wrong variable in rtc_mips_set_time() for yosemite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix wrong variable in rtc_mips_set_time() for yosemite.

arch/mips/pmc-sierra/yosemite/setup.c: In function 'rtc_mips_set_time':
arch/mips/pmc-sierra/yosemite/setup.c:107: error: 'sec' undeclared (first use in this function)
arch/mips/pmc-sierra/yosemite/setup.c:107: error: (Each undeclared identifier is reported only once
arch/mips/pmc-sierra/yosemite/setup.c:107: error: for each function it appears in.)
make[1]: *** [arch/mips/pmc-sierra/yosemite/setup.o] Error 1

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@xxxxxxxxxxxxxx>

diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/pmc-sierra/yosemite/setup.c mips/arch/mips/pmc-sierra/yosemite/setup.c
--- mips-orig/arch/mips/pmc-sierra/yosemite/setup.c	2007-10-03 15:50:23.465579250 +0900
+++ mips/arch/mips/pmc-sierra/yosemite/setup.c	2007-10-04 10:04:04.988276750 +0900
@@ -104,7 +104,7 @@ int rtc_mips_set_time(unsigned long tim)
 	 * Convert to a more useful format -- note months count from 0
 	 * and years from 1900
 	 */
-	rtc_time_to_tm(sec, &tm);
+	rtc_time_to_tm(tim, &tm);
 	tm.tm_year += 1900;
 	tm.tm_mon += 1;
 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux