]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/kernel/omap/beagle/0004-zeroMAP-Open-your-eyes.patch
asterisk addon: update to 11.13.1
[people/pmueller/ipfire-2.x.git] / src / patches / kernel / omap / beagle / 0004-zeroMAP-Open-your-eyes.patch
1 From 81ff7627ad0d958a5c156cb7d880af8707e14f47 Mon Sep 17 00:00:00 2001
2 From: Alexander Holler <holler@ahsoftware.de>
3 Date: Wed, 4 Jul 2012 00:03:04 +0200
4 Subject: [PATCH 4/5] zeroMAP: Open your eyes!
5
6 Signed-off-by: Alexander Holler <holler@ahsoftware.de>
7 ---
8 kernel/printk.c | 7 +++++++
9 1 files changed, 7 insertions(+), 0 deletions(-)
10
11 diff --git a/kernel/printk.c b/kernel/printk.c
12 index 22e070f..3678740 100644
13 --- a/kernel/printk.c
14 +++ b/kernel/printk.c
15 @@ -1759,6 +1759,13 @@ static int __init console_setup(char *str)
16 char *s, *options, *brl_options = NULL;
17 int idx;
18
19 +#ifdef CONFIG_SERIAL_OMAP
20 + if (!strncmp(str, "tty0", 4) && '0' <= str[4] && '9' >= str[4]) {
21 + str[3] = 'O';
22 + pr_warn("We are opening your eyes, assuming you want to use an OMAP based serial driver and not a zeroMAP based one! ;)\n");
23 + pr_warn("Which means 'tty0%s' was changed to 'ttyO%s' automagically for your pleasure.\n", str+4, str+4);
24 + }
25 +#endif
26 #ifdef CONFIG_A11Y_BRAILLE_CONSOLE
27 if (!memcmp(str, "brl,", 4)) {
28 brl_options = "";
29 --
30 1.7.7.6
31