projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a39a49
)
rtc-dev: return -ENOTTY in ioctl if irq_set_freq is not implemented by driver
author
Hans-Christian Egtvedt
<
[email protected]
>
Tue, 17 Jul 2007 11:05:00 +0000
(
04:05
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 17 Jul 2007 17:23:09 +0000
(10:23 -0700)
Signed-off-by: Hans-Christian Egtvedt <
[email protected]
>
Cc: Haavard Skinnemoen <
[email protected]
>
Cc: David Brownell <
[email protected]
>
Cc: Alessandro Zummo <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-dev.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-dev.c
b/drivers/rtc/rtc-dev.c
index f4e5f0040ff7a43263a2af50b9eb694624f3fa91..304535942de2568e120d26df0db9fe7c77289d5c 100644
(file)
--- a/
drivers/rtc/rtc-dev.c
+++ b/
drivers/rtc/rtc-dev.c
@@
-341,6
+341,8
@@
static int rtc_dev_ioctl(struct inode *inode, struct file *file,
case RTC_IRQP_READ:
if (ops->irq_set_freq)
err = put_user(rtc->irq_freq, (unsigned long __user *)uarg);
+ else
+ err = -ENOTTY;
break;
case RTC_IRQP_SET: