Re: [PATCH] rtc: twl: Fix registration vs. init order

2011-08-12 Thread John Stultz
On Wed, 2011-08-10 at 20:20 -0700, Todd Poynor wrote: > 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

[PATCH] rtc: twl: Fix registration vs. init order

2011-08-10 Thread Todd Poynor
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 R