diff options
| author | Feng Tang <[email protected]> | 2011-04-07 01:39:44 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2011-04-07 09:27:42 +0000 |
| commit | de97a21a23dda34f1754a748560dede139e6bfc2 (patch) | |
| tree | 7d6300b10d5b105c39e8d2857075a646a242a974 /drivers/i2c/algos/i2c-algo-bit.c | |
| parent | Linux 2.6.39-rc2 (diff) | |
| download | kernel-de97a21a23dda34f1754a748560dede139e6bfc2.tar.gz kernel-de97a21a23dda34f1754a748560dede139e6bfc2.zip | |
rtc, x86/mrst/vrtc: Fix boot crash in rtc_read_alarm()
Commit f44f7f96a20 ("RTC: Initialize kernel state from RTC") caused a
boot regression on the MRST platform.
The reason is that rtc_device_register() calls rtc_read_alarm() after
that change, which function does not have all driver data set up yet.
The rtc-mrst driver needs to call dev_set_drvdata() before rtc_device_register()
gets called.
Signed-off-by: Feng Tang <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Acked-by: John Stultz <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions
