#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/spinlock.h>
+#include <linux/moduleparam.h>
#include <asm/io.h>
#include <asm/uaccess.h>
static int nowayout = 0;
#endif
-MODULE_PARM(nowayout,"i");
+module_param(nowayout, int, 0);
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)");
return 0;
}
-static ssize_t
-ibwdt_read(struct file *file, char *buf, size_t count, loff_t *ppos)
-{
- return -EINVAL;
-}
-
static int
ibwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
static struct file_operations ibwdt_fops = {
.owner = THIS_MODULE,
- .read = ibwdt_read,
.write = ibwdt_write,
.ioctl = ibwdt_ioctl,
.open = ibwdt_open,