From: Atsushi Nemoto Date: Wed, 16 Dec 2009 00:46:01 +0000 (-0800) Subject: rtc-ds1553: fix races around device registration X-Git-Tag: v2.6.33-rc1~71^2~152 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=618161f71cb10ff9bfe74c9bd766faf339f98274;p=pandora-kernel.git rtc-ds1553: fix races around device registration * Call dev_set_drvdata before rtc device creation * Use its own spinlock instead of rtc->irq_lock * Check pdata->rtc before calling rtc_update_irq * Use {alarm,update}_irq_enable and remove ioctl routine * Use devres APIs and simplify error/remove path Signed-off-by: Atsushi Nemoto Acked-by: Alessandro Zummo Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed