rtc-rs5c313.c: add error handling to avoid hardware hangup
authorkogiidena <kogiidena@eggplant.ddo.jp>
Fri, 11 May 2007 05:22:57 +0000 (22:22 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 11 May 2007 15:29:35 +0000 (08:29 -0700)
commit4ac24b3ba9016881b11646114bb5cd12cf23edd9
tree8930ca592ade8b0ce0407eb1a4c93b6749c7eb0e
parent5a6a078950d769ff211c1cbd9468e31162481f8d
rtc-rs5c313.c: add error handling to avoid hardware hangup

Add error processing.  Hanging up by an infinite loop is evaded.

Signed-off-by: kogiidena <kogiidena@eggplant.ddo.jp>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-rs5c313.c