rtc: ds1374, fix lock imbalance
authorJiri Slaby <jirislaby@gmail.com>
Sun, 5 Jul 2009 19:08:03 +0000 (12:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 6 Jul 2009 20:57:03 +0000 (13:57 -0700)
commit28df30e61b46a33d1f0bb60757747396886ef687
tree9ef6f24145e28a38884da1ba1e2e895c3f17bbb1
parentefc0cfa6d16103bd72a7c398f1321816b635370f
rtc: ds1374, fix lock imbalance

When i2c_smbus_read_byte_data fails in ds1374_work, we forgot to unlock
the held lock.  Fix that.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1374.c