linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH][MIPS] fix wrong variable in rtc_mips_set_time() for yosemite
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Thu, 11 Oct 2007 23:01:15 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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;
 

<Prev in Thread] Current Thread [Next in Thread>