Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH][MIPS] fix wrong variable in rtc_mips_set_time() for yosemite
@ 2007-10-11 14:01 Yoichi Yuasa
  2007-10-11 14:34 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Yoichi Yuasa @ 2007-10-11 14:01 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yoichi_yuasa, linux-mips

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@tripeaks.co.jp>

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;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-11 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-11 14:01 [PATCH][MIPS] fix wrong variable in rtc_mips_set_time() for yosemite Yoichi Yuasa
2007-10-11 14:34 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox