Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
rtc
/
rtc-s3c.c
diff --git
a/kernel/drivers/rtc/rtc-s3c.c
b/kernel/drivers/rtc/rtc-s3c.c
index
ffb860d
..
f925288
100644
(file)
--- a/
kernel/drivers/rtc/rtc-s3c.c
+++ b/
kernel/drivers/rtc/rtc-s3c.c
@@
-149,12
+149,14
@@
static int s3c_rtc_setfreq(struct s3c_rtc *info, int freq)
if (!is_power_of_2(freq))
return -EINVAL;
+ s3c_rtc_enable_clk(info);
spin_lock_irq(&info->pie_lock);
if (info->data->set_freq)
info->data->set_freq(info, freq);
spin_unlock_irq(&info->pie_lock);
+ s3c_rtc_disable_clk(info);
return 0;
}