diff options
author | Alex Gonzalez <alex.gonzalez@digi.com> | 2012-02-01 13:20:21 +0100 |
---|---|---|
committer | Alex Gonzalez <alex.gonzalez@digi.com> | 2012-02-01 13:22:53 +0100 |
commit | 931818432f4f42d8ad006cf7ef3174750b4e4e37 (patch) | |
tree | 58cc303ece459b4ab3085757a97e615e6d15ec4e | |
parent | 63fecb5d5440c096674b19e5a04112fb6756d5ee (diff) |
ccxmx53: da9053 rtc, do not unconditionally set the alarm on update
The kernel API can update the alarm time while the alarm is disabled. Do
not set the alarm when updating the time unless explicitely told so.
This helps Vantive 41951.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
-rw-r--r-- | drivers/rtc/rtc-da9052.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c index f5a41c37a4dc..595384cf02be 100644 --- a/drivers/rtc/rtc-da9052.c +++ b/drivers/rtc/rtc-da9052.c @@ -557,7 +557,7 @@ static int da9052_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm) if (ret) return ret; - ret = da9052_rtc_enable_alarm(da9052, 1); + ret = da9052_rtc_enable_alarm(da9052, alrm->enabled); return ret; } |