]> err.no Git - linux-2.6/blobdiff - fs/coda/psdev.c
[PATCH] DM9000 - check for MAC left in by bootloader
[linux-2.6] / fs / coda / psdev.c
index 98c74fe2e139d0f349cb1201577abdbad8b6b3f2..7caee8d8ea3b9a24656f40a20c247986f796d39f 100644 (file)
@@ -259,7 +259,7 @@ static ssize_t coda_psdev_read(struct file * file, char __user * buf,
        /* If request was not a signal, enqueue and don't free */
        if (!(req->uc_flags & REQ_ASYNC)) {
                req->uc_flags |= REQ_READ;
-               list_add(&(req->uc_chain), vcp->vc_processing.prev);
+               list_add_tail(&(req->uc_chain), &vcp->vc_processing);
                goto out;
        }
 
@@ -342,7 +342,7 @@ static int coda_psdev_release(struct inode * inode, struct file * file)
 }
 
 
-static struct file_operations coda_psdev_fops = {
+static const struct file_operations coda_psdev_fops = {
        .owner          = THIS_MODULE,
        .read           = coda_psdev_read,
        .write          = coda_psdev_write,