RTC: rtc-mrst: follow on to the change of rtc_device_register()
authorFeng Tang <feng.tang@intel.com>
Thu, 7 Apr 2011 01:39:44 +0000 (09:39 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 7 Apr 2011 02:17:55 +0000 (19:17 -0700)
commit67c1b8c6aa354aad14aad85d36508fd73d1c6361
treea8e2d837b50646e987480ab1168d45801a22e4c5
parent8c122b96866580c99e44f3f07ac93a993d964ec3
RTC: rtc-mrst: follow on to the change of rtc_device_register()

commit f44f7f96a20 (RTC: Initialize kernel state from RTC) will
call rtc_read_alarm() inside rtc_device_register(), so rtc-mrst
driver need to call dev_set_drvdata() before rtc_device_register()
get called.

Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/rtc-mrst.c