[PATCH] Make most file operations structs in fs/ const
[deliverable/linux.git] / drivers / misc / ibmasm / ibmasmfs.c
index ca839162e4f748f36769d602515f2293d5eccca5..26a230b6ff80dbee2d207a10d4625c44e64f02d4 100644 (file)
@@ -101,7 +101,7 @@ static struct super_operations ibmasmfs_s_ops = {
        .drop_inode     = generic_delete_inode,
 };
 
-static struct file_operations *ibmasmfs_dir_ops = &simple_dir_operations;
+static const struct file_operations *ibmasmfs_dir_ops = &simple_dir_operations;
 
 static struct file_system_type ibmasmfs_type = {
        .owner          = THIS_MODULE,
@@ -321,7 +321,7 @@ static ssize_t command_file_write(struct file *file, const char __user *ubuff, s
        if (command_data->command)
                return -EAGAIN;
 
-       cmd = ibmasm_new_command(count);
+       cmd = ibmasm_new_command(command_data->sp, count);
        if (!cmd)
                return -ENOMEM;
 
This page took 0.035194 seconds and 5 git commands to generate.