From: Uwe Kleine-König Date: Fri, 5 Mar 2010 21:44:30 +0000 (-0800) Subject: rtc/mc13783: protect rtc {,un}registration by mc13783 lock X-Git-Tag: v2.6.34-rc1~38 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c014e872e02baa5b0bde38b2b2867ccf1f9df76;p=pandora-kernel.git rtc/mc13783: protect rtc {,un}registration by mc13783 lock This is to protect from interrupt handlers using an unregistered rtc device. To assert that the reset irq is considered now before the rtc is registered the corresponding status is checked before. Signed-off-by: Uwe Kleine-König Cc: Alessandro Zummo Cc: Paul Gortmaker Cc: Valentin Longchamp Cc: Sascha Hauer Cc: Samuel Ortiz Cc: Dmitry Torokhov Cc: Luotao Fu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed