summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-15 16:38:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-15 16:38:14 -0700
commit296736552fb30a183b8c4635a6cd94f2cb74aa82 (patch)
tree068187dd7cf9c92b4f59c8c943bcdc4429dee24d /drivers/staging
parentda45e3fe89fd04d37da3be86999455ce069962ae (diff)
Staging: android: ram_console.c:
Fix build error when CONFIG_PRINTK is not selected. Reported-by: Randy Dunlap <rdunlap@xenotime.net> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/android/ram_console.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/android/ram_console.c b/drivers/staging/android/ram_console.c
index 2918bc19f294..ce140ffc54ea 100644
--- a/drivers/staging/android/ram_console.c
+++ b/drivers/staging/android/ram_console.c
@@ -85,6 +85,10 @@ static int __init ram_console_module_init(void)
return platform_driver_probe(&ram_console_driver, ram_console_probe);
}
+#ifndef CONFIG_PRINTK
+#define dmesg_restrict 0
+#endif
+
static ssize_t ram_console_read_old(struct file *file, char __user *buf,
size_t len, loff_t *offset)
{