Skip to content
Commit 9cf3b5fa authored by Linus Walleij's avatar Linus Walleij
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
parent cf568c58
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment