OSDN Git Service

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)
commit5ab9a52a3af613b74a7cda033c1623c7913c50d9
treeb338efd146a165d320740912d779d94f3159f341
parentfda9909ddaab13fb7b35b94f204623c1f9571fc7
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