summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mcp795.c
diff options
context:
space:
mode:
authorRaghavendra Ganiga <ravi23ganiga@gmail.com>2014-06-06 14:36:01 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 16:08:08 -0700
commit10b06b87b77e9fcd7d1282f8cacf9736fb5143b3 (patch)
treedce63ae7ddb4aa4439c64e5c82f6403ba082d39d /drivers/rtc/rtc-mcp795.c
parent0dd449b1626c3db6b40fc2c7685bf9b0ac79ce00 (diff)
downloadtalos-obmc-linux-10b06b87b77e9fcd7d1282f8cacf9736fb5143b3.tar.gz
talos-obmc-linux-10b06b87b77e9fcd7d1282f8cacf9736fb5143b3.zip
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 <ravi23ganiga@gmail.com> Acked-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-mcp795.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud