Commit 672a4830 authored by Linus Torvalds's avatar Linus Torvalds

Merge http://linux-watchdog.bkbits.net/linux-2.6-watchdog

into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents 786501bb 1f315b72
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <linux/pcwd.h> #include <linux/types.h>
#include <linux/watchdog.h>
int fd; int fd;
......
...@@ -134,7 +134,7 @@ static int cpu5wdt_open(struct inode *inode, struct file *file) ...@@ -134,7 +134,7 @@ static int cpu5wdt_open(struct inode *inode, struct file *file)
if ( test_and_set_bit(0, &cpu5wdt_device.inuse) ) if ( test_and_set_bit(0, &cpu5wdt_device.inuse) )
return -EBUSY; return -EBUSY;
return 0; return nonseekable_open(inode, file);
} }
static int cpu5wdt_release(struct inode *inode, struct file *file) static int cpu5wdt_release(struct inode *inode, struct file *file)
...@@ -198,6 +198,7 @@ static ssize_t cpu5wdt_write(struct file *file, const char __user *buf, size_t c ...@@ -198,6 +198,7 @@ static ssize_t cpu5wdt_write(struct file *file, const char __user *buf, size_t c
static struct file_operations cpu5wdt_fops = { static struct file_operations cpu5wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = cpu5wdt_ioctl, .ioctl = cpu5wdt_ioctl,
.open = cpu5wdt_open, .open = cpu5wdt_open,
.write = cpu5wdt_write, .write = cpu5wdt_write,
......
...@@ -263,6 +263,7 @@ ibwdt_notify_sys(struct notifier_block *this, unsigned long code, ...@@ -263,6 +263,7 @@ ibwdt_notify_sys(struct notifier_block *this, unsigned long code,
static struct file_operations ibwdt_fops = { static struct file_operations ibwdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = ibwdt_write, .write = ibwdt_write,
.ioctl = ibwdt_ioctl, .ioctl = ibwdt_ioctl,
.open = ibwdt_open, .open = ibwdt_open,
......
...@@ -162,6 +162,7 @@ static int indydog_notify_sys(struct notifier_block *this, unsigned long code, v ...@@ -162,6 +162,7 @@ static int indydog_notify_sys(struct notifier_block *this, unsigned long code, v
static struct file_operations indydog_fops = { static struct file_operations indydog_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = indydog_write, .write = indydog_write,
.ioctl = indydog_ioctl, .ioctl = indydog_ioctl,
.open = indydog_open, .open = indydog_open,
......
...@@ -170,6 +170,7 @@ ixp4xx_wdt_release(struct inode *inode, struct file *file) ...@@ -170,6 +170,7 @@ ixp4xx_wdt_release(struct inode *inode, struct file *file)
static struct file_operations ixp4xx_wdt_fops = static struct file_operations ixp4xx_wdt_fops =
{ {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = ixp4xx_wdt_write, .write = ixp4xx_wdt_write,
.ioctl = ixp4xx_wdt_ioctl, .ioctl = ixp4xx_wdt_ioctl,
.open = ixp4xx_wdt_open, .open = ixp4xx_wdt_open,
......
...@@ -425,6 +425,7 @@ static int zf_notify_sys(struct notifier_block *this, unsigned long code, ...@@ -425,6 +425,7 @@ static int zf_notify_sys(struct notifier_block *this, unsigned long code,
static struct file_operations zf_fops = { static struct file_operations zf_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = zf_write, .write = zf_write,
.ioctl = zf_ioctl, .ioctl = zf_ioctl,
.open = zf_open, .open = zf_open,
......
...@@ -197,6 +197,7 @@ static int mixcomwd_ioctl(struct inode *inode, struct file *file, ...@@ -197,6 +197,7 @@ static int mixcomwd_ioctl(struct inode *inode, struct file *file,
static struct file_operations mixcomwd_fops= static struct file_operations mixcomwd_fops=
{ {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = mixcomwd_write, .write = mixcomwd_write,
.ioctl = mixcomwd_ioctl, .ioctl = mixcomwd_ioctl,
.open = mixcomwd_open, .open = mixcomwd_open,
......
...@@ -162,6 +162,7 @@ static int sa1100dog_ioctl(struct inode *inode, struct file *file, ...@@ -162,6 +162,7 @@ static int sa1100dog_ioctl(struct inode *inode, struct file *file,
static struct file_operations sa1100dog_fops = static struct file_operations sa1100dog_fops =
{ {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = sa1100dog_write, .write = sa1100dog_write,
.ioctl = sa1100dog_ioctl, .ioctl = sa1100dog_ioctl,
.open = sa1100dog_open, .open = sa1100dog_open,
......
...@@ -301,6 +301,7 @@ static struct notifier_block sc1200wdt_notifier = ...@@ -301,6 +301,7 @@ static struct notifier_block sc1200wdt_notifier =
static struct file_operations sc1200wdt_fops = static struct file_operations sc1200wdt_fops =
{ {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = sc1200wdt_write, .write = sc1200wdt_write,
.ioctl = sc1200wdt_ioctl, .ioctl = sc1200wdt_ioctl,
.open = sc1200wdt_open, .open = sc1200wdt_open,
......
...@@ -201,6 +201,7 @@ static int scx200_wdt_ioctl(struct inode *inode, struct file *file, ...@@ -201,6 +201,7 @@ static int scx200_wdt_ioctl(struct inode *inode, struct file *file,
static struct file_operations scx200_wdt_fops = { static struct file_operations scx200_wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = scx200_wdt_write, .write = scx200_wdt_write,
.ioctl = scx200_wdt_ioctl, .ioctl = scx200_wdt_ioctl,
.open = scx200_wdt_open, .open = scx200_wdt_open,
......
...@@ -180,6 +180,7 @@ watchdog_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -180,6 +180,7 @@ watchdog_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
static struct file_operations watchdog_fops = { static struct file_operations watchdog_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = watchdog_write, .write = watchdog_write,
.ioctl = watchdog_ioctl, .ioctl = watchdog_ioctl,
.open = watchdog_open, .open = watchdog_open,
......
...@@ -392,6 +392,7 @@ static int wdt977_notify_sys(struct notifier_block *this, unsigned long code, ...@@ -392,6 +392,7 @@ static int wdt977_notify_sys(struct notifier_block *this, unsigned long code,
static struct file_operations wdt977_fops= static struct file_operations wdt977_fops=
{ {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.write = wdt977_write, .write = wdt977_write,
.ioctl = wdt977_ioctl, .ioctl = wdt977_ioctl,
.open = wdt977_open, .open = wdt977_open,
......
...@@ -592,13 +592,15 @@ COMPATIBLE_IOCTL(ATMTCP_CREATE) ...@@ -592,13 +592,15 @@ COMPATIBLE_IOCTL(ATMTCP_CREATE)
COMPATIBLE_IOCTL(ATMTCP_REMOVE) COMPATIBLE_IOCTL(ATMTCP_REMOVE)
COMPATIBLE_IOCTL(ATMMPC_CTRL) COMPATIBLE_IOCTL(ATMMPC_CTRL)
COMPATIBLE_IOCTL(ATMMPC_DATA) COMPATIBLE_IOCTL(ATMMPC_DATA)
/* Big W */ /* Watchdog */
/* WIOC_GETSUPPORT not yet implemented -E */ COMPATIBLE_IOCTL(WDIOC_GETSUPPORT)
COMPATIBLE_IOCTL(WDIOC_GETSTATUS) COMPATIBLE_IOCTL(WDIOC_GETSTATUS)
COMPATIBLE_IOCTL(WDIOC_GETBOOTSTATUS) COMPATIBLE_IOCTL(WDIOC_GETBOOTSTATUS)
COMPATIBLE_IOCTL(WDIOC_GETTEMP) COMPATIBLE_IOCTL(WDIOC_GETTEMP)
COMPATIBLE_IOCTL(WDIOC_SETOPTIONS) COMPATIBLE_IOCTL(WDIOC_SETOPTIONS)
COMPATIBLE_IOCTL(WDIOC_KEEPALIVE) COMPATIBLE_IOCTL(WDIOC_KEEPALIVE)
COMPATIBLE_IOCTL(WDIOC_SETTIMEOUT)
COMPATIBLE_IOCTL(WDIOC_GETTIMEOUT)
/* Big R */ /* Big R */
COMPATIBLE_IOCTL(RNDGETENTCNT) COMPATIBLE_IOCTL(RNDGETENTCNT)
COMPATIBLE_IOCTL(RNDADDTOENTCNT) COMPATIBLE_IOCTL(RNDADDTOENTCNT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment