]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-mc13xxx.c: fix potential race condition
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 3 Apr 2014 21:50:15 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:23 +0000 (16:21 -0700)
commit89212d2fd836d996e8151bd54984f4c01a0fd46e
treeb338efd146a165d320740912d779d94f3159f341
parent2bc0bb91689e6a2c59724235f86aae2b6ed78a3e
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>
drivers/rtc/rtc-mc13xxx.c