]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: fix coh901331 startup crash
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 17 Apr 2011 18:32:19 +0000 (20:32 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 20 Apr 2011 16:46:56 +0000 (18:46 +0200)
commit84968ee9b3f31978ed1786c88e2f9eddc54d6d59
treee11c99e1af553d14619feba4f40d163df95fa09a
parentc0bc65315008c507a0a1c3bbbf7b17c6188d5d8e
rtc: fix coh901331 startup crash

The rtc_device_register() call has changed semantics so that it
will immediately call out to rtc_read_alarm() and since the
callbacks require the drvdata to be set, we need to set it before
the registration call to avoid NULL dereference.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/rtc/rtc-coh901331.c