Staging: android: ram_console: fix up remaining checkpatch warnings
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 May 2009 00:00:41 +0000 (17:00 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:52 +0000 (11:00 -0700)
This cleans up the last of the checkpatch warnings in the android
ram_console driver.

Cc: San Mehat <san@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/ram_console.c

index 3375c1cce2b35871bcd9f66ae5cee9699689be70..8f18a59744cdd8911a1be78297421b245dccad2b 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/proc_fs.h>
 #include <linux/string.h>
 #include <linux/uaccess.h>
-#include <asm/io.h>
+#include <linux/io.h>
 
 #ifdef CONFIG_ANDROID_RAM_CONSOLE_ERROR_CORRECTION
 #include <linux/rslib.h>
@@ -225,8 +225,9 @@ static int __init ram_console_init(struct ram_console_buffer *buffer,
                buffer_size - sizeof(struct ram_console_buffer);
 
        if (ram_console_buffer_size > buffer_size) {
-               pr_err("ram_console: buffer %p, invalid size %zu, datasize %zu\n",
-                      buffer, buffer_size, ram_console_buffer_size);
+               pr_err("ram_console: buffer %p, invalid size %zu, "
+                      "datasize %zu\n", buffer, buffer_size,
+                      ram_console_buffer_size);
                return 0;
        }
 
@@ -365,7 +366,7 @@ static ssize_t ram_console_read_old(struct file *file, char __user *buf,
        return count;
 }
 
-static struct file_operations ram_console_file_ops = {
+static const struct file_operations ram_console_file_ops = {
        .owner = THIS_MODULE,
        .read = ram_console_read_old,
 };