summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorBitan Biswas <bbiswas@nvidia.com>2014-05-23 00:14:47 +0530
committerRiham Haidar <rhaidar@nvidia.com>2014-05-27 14:23:03 -0700
commite1470d63d7f3faa76bc85e8c55822e5835f8f9a7 (patch)
treebaf563e9563efef973ef394fe7857b7cebc60f0d /drivers/rtc
parent37b02dab58ad9bd04ba4e898929333f72aa9ed4d (diff)
time: tegra: post-lp0 sync system to rtc time
Ensure system time is read from rtc i.e. PMIC RTC in case of tegra after system resume. - Change is applicable to all PMIC RTC drivers. bug 1510843 Reviewed-on: http://git-master/r/413365/ Reviewed-on: http://git-master/r/414163/ Reviewed-on: http://git-master/r/414169/ Reviewed-on: http://git-master/r/414200/ Reviewed-on: http://git-master/r/414201/ Change-Id: I8194f9f4be581216d662e6a6e0d7e98a9495159c Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/414203 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/hctosys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/hctosys.c b/drivers/rtc/hctosys.c
index 4aa60d74004e..4633637c8c80 100644
--- a/drivers/rtc/hctosys.c
+++ b/drivers/rtc/hctosys.c
@@ -22,7 +22,7 @@
* the best guess is to add 0.5s.
*/
-static int __init rtc_hctosys(void)
+int rtc_hctosys(void)
{
int err = -ENODEV;
struct rtc_time tm;
@@ -72,5 +72,6 @@ err_open:
return err;
}
+EXPORT_SYMBOL(rtc_hctosys);
late_initcall(rtc_hctosys);