rtc: don't return -EBUSY when mutex_lock_interruptible() fails
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 30 Jul 2008 05:33:30 +0000 (22:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Jul 2008 16:41:45 +0000 (09:41 -0700)
commitb68bb2632453a9ca7d10a00d79adf60968cb4c05
tree3093bd33da75ce165d0f9b0af8931d7eb4d4488a
parent950d442ad053e660538cdaa6efc0e060c2a65062
rtc: don't return -EBUSY when mutex_lock_interruptible() fails

It was pointed out that the RTC framework handles its mutex locks oddly
...  returning -EBUSY when interrupted.  This fixes that by returning the
value of mutex_lock_interruptible() (i.e.  -EINTR).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/interface.c
drivers/rtc/rtc-dev.c