From 5ab9a52a3af613b74a7cda033c1623c7913c50d9 Mon Sep 17 00:00:00 2001 From: Alexander Shiyan Date: Thu, 3 Apr 2014 14:50:15 -0700 Subject: [PATCH] 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 Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed