commit | 5ab9a52a3af613b74a7cda033c1623c7913c50d9 | [log] [tgz] |
---|---|---|
author | Alexander Shiyan <shc_work@mail.ru> | Thu Apr 03 14:50:15 2014 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Apr 03 16:21:23 2014 -0700 |
tree | b338efd146a165d320740912d779d94f3159f341 | |
parent | fda9909ddaab13fb7b35b94f204623c1f9571fc7 [diff] |
drivers/rtc/rtc-mc13xxx.c: fix potential race condition RTC drivers must not return an error after device registration. This patch makes RTC registration as the last action. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> 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>