git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-generic
/
rtc.h
diff --git
a/include/asm-generic/rtc.h
b/include/asm-generic/rtc.h
index
4087037
..
cef08db
100644
(file)
--- a/
include/asm-generic/rtc.h
+++ b/
include/asm-generic/rtc.h
@@
-114,7
+114,6
@@
static inline unsigned int get_rtc_time(struct rtc_time *time)
/* Set the current date and time in the real time clock. */
static inline int set_rtc_time(struct rtc_time *time)
{
/* Set the current date and time in the real time clock. */
static inline int set_rtc_time(struct rtc_time *time)
{
- unsigned long flags;
unsigned char mon, day, hrs, min, sec;
unsigned char save_control, save_freq_select;
unsigned int yrs;
unsigned char mon, day, hrs, min, sec;
unsigned char save_control, save_freq_select;
unsigned int yrs;
@@
-132,7
+131,7
@@
static inline int set_rtc_time(struct rtc_time *time)
if (yrs > 255) /* They are unsigned */
return -EINVAL;
if (yrs > 255) /* They are unsigned */
return -EINVAL;
- spin_lock_irq
save(&rtc_lock, flags
);
+ spin_lock_irq
(&rtc_lock
);
#ifdef CONFIG_MACH_DECSTATION
real_yrs = yrs;
leap_yr = ((!((yrs + 1900) % 4) && ((yrs + 1900) % 100)) ||
#ifdef CONFIG_MACH_DECSTATION
real_yrs = yrs;
leap_yr = ((!((yrs + 1900) % 4) && ((yrs + 1900) % 100)) ||
@@
-153,7
+152,7
@@
static inline int set_rtc_time(struct rtc_time *time)
* whether the chip is in binary mode or not.
*/
if (yrs > 169) {
* whether the chip is in binary mode or not.
*/
if (yrs > 169) {
- spin_unlock_irq
restore(&rtc_lock, flags
);
+ spin_unlock_irq
(&rtc_lock
);
return -EINVAL;
}
return -EINVAL;
}
@@
-188,7
+187,7
@@
static inline int set_rtc_time(struct rtc_time *time)
CMOS_WRITE(save_control, RTC_CONTROL);
CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT);
CMOS_WRITE(save_control, RTC_CONTROL);
CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT);
- spin_unlock_irq
restore(&rtc_lock, flags
);
+ spin_unlock_irq
(&rtc_lock
);
return 0;
}
return 0;
}