Wolfram Sang a91d2bab35 rtc: stmp3xxx: Initialize drvdata before registering device
Commit f44f7f96a20 ("RTC: Initialize kernel state from RTC") uncovered
an issue in a number of RTC drivers, where the drivers call
rtc_device_register before initializing the device or platform drvdata.

This frequently results in null pointer dereferences when the
rtc_device_register immediately makes use of the rtc device, calling
rtc_read_alarm.

The solution is to ensure the drvdata is initialized prior to registering
the rtc device.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
2011-07-01 18:09:55 -07:00
..
2011-05-26 17:12:32 -07:00
2011-06-11 15:06:48 -07:00
2011-05-06 09:27:55 -07:00
2011-06-06 14:14:56 +02:00
2011-06-14 15:15:25 +09:00
2011-05-30 11:14:15 +09:30