Staging: android: ram_console.c:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2012 23:38:14 +0000 (16:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2012 23:38:14 +0000 (16:38 -0700)
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>
drivers/staging/android/ram_console.c

index 2918bc1..ce140ff 100644 (file)
@@ -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)
 {