Commit cb5a3cc5 authored by Michael Bohan's avatar Michael Bohan
Browse files

rtc: rtc-pm8058: port driver to 3.0



The pm_chip pointer comes from the parent, so use that rather
than the local drvdata when probing.

In addition, in 3.0, upon registration Linux will immediately
call back into the driver. Therefore we must register the local
rtc driver data with the driver data *before* registering.

With this change the rtc_test test passes.

Change-Id: I1310f6eec1015d26b919907e430c715efe5c1091
Signed-off-by: default avatarMichael Bohan <mbohan@codeaurora.org>
parent 550aa1ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment