merge of '7393275c6ccce67cadeb49d4afb3459e56edf8a9'
[vuplus_openembedded] / packages / linux / linux-2.6.24 / simpad / linux-2.6.24-SIMpad-rtc-sa1100.patch
1 diff -Nur linux-2.6.24.vanilla/drivers/rtc/rtc-sa1100.c linux-2.6.24/drivers/rtc/rtc-sa1100.c
2 --- linux-2.6.24.vanilla/drivers/rtc/rtc-sa1100.c       2008-01-24 23:58:37.000000000 +0100
3 +++ linux-2.6.24/drivers/rtc/rtc-sa1100.c       2008-03-17 20:52:41.000000000 +0100
4 @@ -15,6 +15,10 @@
5   * Converted to the RTC subsystem and Driver Model
6   *   by Richard Purdie <rpurdie@rpsys.net>
7   *
8 + * 2008/03/17 mrdata:
9 + *            disable IRQ RTC1Hz and RTCAlrm before request_irq
10 + *            in sa1100_rtc_open()
11 + *
12   * This program is free software; you can redistribute it and/or
13   * modify it under the terms of the GNU General Public License
14   * as published by the Free Software Foundation; either version
15 @@ -154,7 +158,12 @@
16  static int sa1100_rtc_open(struct device *dev)
17  {
18         int ret;
19 -
20 +       
21 +       spin_lock_irq(&sa1100_rtc_lock);
22 +       RTSR &= ~RTSR_HZE;
23 +       RTSR &= ~RTSR_ALE;
24 +       spin_unlock_irq(&sa1100_rtc_lock);
25 +       
26         ret = request_irq(IRQ_RTC1Hz, sa1100_rtc_interrupt, IRQF_DISABLED,
27                                 "rtc 1Hz", dev);
28         if (ret) {