dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Greg Kroah-Hartman 2012-03-15 16:38:14 -07:00
parent da45e3fe89
commit 296736552f
1 changed files with 4 additions and 0 deletions

View 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)
{