Atsushi Nemoto 1d96469a34 rtc: fix double lock on UIE emulation
With commit 5ad31a575157147b43fa84ef1e21471661653878 ("rtc: remove BKL
for ioctl()"), RTC_UIE_ON ioctl cause double lock on rtc->ops_lock.
The ops_lock must not be held while set_uie() calls rtc_read_time()
which takes the lock.  Also clear_uie() does not need ops_lock.  This
patch fixes return value of RTC_UIE_OFF ioctl too.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: David Brownell <david-b@pacbell.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-08-20 15:40:31 -07:00
..
2007-10-16 09:43:13 -07:00
2008-07-24 10:47:33 -07:00
2008-07-02 11:05:01 +02:00
2008-07-24 10:47:34 -07:00
2008-07-24 10:47:33 -07:00
2008-05-08 10:46:55 -07:00
2008-07-12 14:33:41 -07:00
2008-07-24 10:47:33 -07:00
2008-07-12 14:33:42 -07:00
2008-05-11 20:37:06 +02:00
2008-07-04 10:40:05 -07:00