diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-05-11 20:00:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 14:00:52 -0400 |
commit | e93daf9f8d94b9dc31a66e3ae76d7fdf80b1cb7d (patch) | |
tree | c93620f849c098db76ef9cfa26dabd7ab00e301e /drivers | |
parent | 66b20608c9e98a0a29806bd47b30565927fdbbd8 (diff) |
Staging: android: ram_console: fix up remaining checkpatch warnings
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/android/ram_console.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/staging/android/ram_console.c b/drivers/staging/android/ram_console.c index 3375c1cce2b3..8f18a59744cd 100644 --- a/drivers/staging/android/ram_console.c +++ b/drivers/staging/android/ram_console.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/proc_fs.h> | 20 | #include <linux/proc_fs.h> |
21 | #include <linux/string.h> | 21 | #include <linux/string.h> |
22 | #include <linux/uaccess.h> | 22 | #include <linux/uaccess.h> |
23 | #include <asm/io.h> | 23 | #include <linux/io.h> |
24 | 24 | ||
25 | #ifdef CONFIG_ANDROID_RAM_CONSOLE_ERROR_CORRECTION | 25 | #ifdef CONFIG_ANDROID_RAM_CONSOLE_ERROR_CORRECTION |
26 | #include <linux/rslib.h> | 26 | #include <linux/rslib.h> |
@@ -225,8 +225,9 @@ static int __init ram_console_init(struct ram_console_buffer *buffer, | |||
225 | buffer_size - sizeof(struct ram_console_buffer); | 225 | buffer_size - sizeof(struct ram_console_buffer); |
226 | 226 | ||
227 | if (ram_console_buffer_size > buffer_size) { | 227 | if (ram_console_buffer_size > buffer_size) { |
228 | pr_err("ram_console: buffer %p, invalid size %zu, datasize %zu\n", | 228 | pr_err("ram_console: buffer %p, invalid size %zu, " |
229 | buffer, buffer_size, ram_console_buffer_size); | 229 | "datasize %zu\n", buffer, buffer_size, |
230 | ram_console_buffer_size); | ||
230 | return 0; | 231 | return 0; |
231 | } | 232 | } |
232 | 233 | ||
@@ -365,7 +366,7 @@ static ssize_t ram_console_read_old(struct file *file, char __user *buf, | |||
365 | return count; | 366 | return count; |
366 | } | 367 | } |
367 | 368 | ||
368 | static struct file_operations ram_console_file_ops = { | 369 | static const struct file_operations ram_console_file_ops = { |
369 | .owner = THIS_MODULE, | 370 | .owner = THIS_MODULE, |
370 | .read = ram_console_read_old, | 371 | .read = ram_console_read_old, |
371 | }; | 372 | }; |