From: Raghavendra Ganiga Date: Fri, 6 Jun 2014 21:36:01 +0000 (-0700) Subject: drivers/rtc/rtc-ds1343.c: fix potential race condition X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~4^2~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10b06b87b77e9fcd7d1282f8cacf9736fb5143b3;p=pandora-kernel.git drivers/rtc/rtc-ds1343.c: fix potential race condition Avoid the potential race condition by avoiding bailing out of driver in probe after registering with rtc subsystem Also the set_alarm , read_alarm and alarm_irq_enable returns error if irq registration fails in probe. Also the sysfs will not create entry for alarm if irq registration fails in probe. Signed-off-by: Raghavendra Chandra Ganiga Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed