git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
char
/
watchdog
/
sbc60xxwdt.c
diff --git
a/drivers/char/watchdog/sbc60xxwdt.c
b/drivers/char/watchdog/sbc60xxwdt.c
index
ed0bd55
..
c7b2045
100644
(file)
--- a/
drivers/char/watchdog/sbc60xxwdt.c
+++ b/
drivers/char/watchdog/sbc60xxwdt.c
@@
-235,7
+235,7
@@
static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
switch(cmd)
{
default:
switch(cmd)
{
default:
- return -ENO
IOCTLCMD
;
+ return -ENO
TTY
;
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;
case WDIOC_GETSTATUS:
case WDIOC_GETSUPPORT:
return copy_to_user(argp, &ident, sizeof(ident))?-EFAULT:0;
case WDIOC_GETSTATUS:
@@
-282,7
+282,7
@@
static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
}
}
}
}
-static struct file_operations wdt_fops = {
+static
const
struct file_operations wdt_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.write = fop_write,
.owner = THIS_MODULE,
.llseek = no_llseek,
.write = fop_write,