Skip to content

Commit

Permalink
Staging: android: ram_console.c:
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Mar 15, 2012
1 parent da45e3f commit 2967365
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/staging/android/ram_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2967365

Please sign in to comment.