Skip to content
Commit 5ab9a52a authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Linus Torvalds
Browse files

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Acked-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fda9909d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment