projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
virtio-blk: allow toggling host cache between writeback and writethrough
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
rtc
/
interface.c
diff --git
a/drivers/rtc/interface.c
b/drivers/rtc/interface.c
index dc87eda6581434c9708173948878e906e46319f6..eb415bd7649418f1d91b5c45b98fe9411f5171d3 100644
(file)
--- a/
drivers/rtc/interface.c
+++ b/
drivers/rtc/interface.c
@@
-458,6
+458,11
@@
int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled)
if (rtc->uie_rtctimer.enabled == enabled)
goto out;
+ if (rtc->uie_unsupported) {
+ err = -EINVAL;
+ goto out;
+ }
+
if (enabled) {
struct rtc_time tm;
ktime_t now, onesec;