summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd_board_msm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/healthd_board_msm.cpp b/healthd/healthd_board_msm.cpp
index c3d81b8..81a8aa6 100644
--- a/healthd/healthd_board_msm.cpp
+++ b/healthd/healthd_board_msm.cpp
@@ -61,7 +61,7 @@ static int alarm_get_time(enum alarm_time_type time_type,
if (!secs)
return -1;
- fd = open("/dev/rtc0", O_RDWR);
+ fd = open("/dev/rtc0", O_RDONLY);
if (fd < 0) {
LOGE("Can't open rtc devfs node\n");
return -1;