From 10b06b87b77e9fcd7d1282f8cacf9736fb5143b3 Mon Sep 17 00:00:00 2001 From: Raghavendra Ganiga Date: Fri, 6 Jun 2014 14:36:01 -0700 Subject: [PATCH] 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-format-patch failed