summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-08-11 07:20:36 +0400
committerJohn Stultz <john.stultz@linaro.org>2011-08-27 04:26:54 +0400
commit7e72c686347562b4a275c97b4bdd7a79c1f23c65 (patch)
tree02d26d0499a1510efa3e15ff57046ad35955f84c /security
parenta7402deb324f62106566f5a95199a54c41e200ef (diff)
downloadlinux-7e72c686347562b4a275c97b4bdd7a79c1f23c65.tar.xz
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 'security')
0 files changed, 0 insertions, 0 deletions