summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-08-11 05:20:36 +0200
committerJohn Stultz <john.stultz@linaro.org>2011-08-27 02:26:54 +0200
commit7e72c686347562b4a275c97b4bdd7a79c1f23c65 (patch)
tree02d26d0499a1510efa3e15ff57046ad35955f84c /drivers/misc
parentrtc: Initialized rtc_time->tm_isdst (diff)
downloadlinux-7e72c686347562b4a275c97b4bdd7a79c1f23c65.tar.xz
linux-7e72c686347562b4a275c97b4bdd7a79c1f23c65.zip
rtc: twl: Fix registration vs. init order
Only register as an RTC device after the hardware has been successfully initialized. The RTC class driver will call back to this driver to read a pending alarm, and other drivers watching for new devices on the RTC class may read the RTC time upon registration. Such access might occur while the RTC is stopped, prior to clearing pending alarms, etc. The new ordering also avoids leaving the platform device drvdata set to an unregistered struct rtc_device * on probe errors. Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions