static ssize_t ali_write(struct file *file, const char __user *data,
size_t len, loff_t * ppos)
{
+ /* Can't seek (pwrite) on this device */
+ if (ppos != &file->f_pos)
+ return -ESPIPE;
+
/* See if we got the magic character 'V' and reload the timer */
if (len) {
if (!nowayout) {
/* Activate */
ali_start();
- return nonseekable_open(inode, file);
+ return 0;
}
/*