rtc: fix potential race condition
authorAlessandro Zummo <[email protected]>
Thu, 3 Apr 2014 21:49:36 +0000 (14:49 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:21:16 +0000 (16:21 -0700)
commit4071ea25cc08d41002746cca2d69ac700d67a2ac
tree43cf44f8265b885c8c1e4e81f0ced5c6babb53c7
parenta68b31080912dae377bee4994716b357dc74286d
rtc: fix potential race condition

RTC drivers must not return an error after device registration.

[[email protected]: coding-style fixes]
Signed-off-by: Alessandro Zummo <[email protected]>
Reported-by: Ales Novak <[email protected]>
Cc: Alexander Shiyan <[email protected]>
Cc: Atsushi Nemoto <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: Srikanth Srinivasan <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-ds1305.c
drivers/rtc/rtc-ds1307.c
drivers/rtc/rtc-ds1511.c
drivers/rtc/rtc-ds1553.c
drivers/rtc/rtc-ds1672.c
drivers/rtc/rtc-ds1742.c
drivers/rtc/rtc-ds3232.c
drivers/rtc/rtc-test.c
drivers/rtc/rtc-x1205.c