diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-10-19 09:18:03 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:01:08 +0200 |
commit | 5c1c7cce37d64233331b944e1182908a1e7030c4 (patch) | |
tree | e926a9493ad7b6bbc90e8bcbbc2496797c6e670d /drivers/tty | |
parent | 2b6a91fa2618d226d8e8c5a97ad7cb57a75be3cd (diff) |
serial/amba-pl011: prevent console port from holding regulator
Register the console in a console_initcall() to ensure that
pl011_console_setup() gets called early and thus the
uart_console() macro usage in pl011_power_startup() returns
the correct value the first time it is called, so that the
vAPE regulator is not taken for the console port.
Note that this problem is seen only when the console port
is line 0, since even without this patch pl011_console_setup()
gets called (and thus the correct console->index is set)
after the first port is added.
ST-Ericsson ID: 368522
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I7f4ab80e8d8be014bfdbe695ea45007212c9c4ea
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34411
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Reviewed-by: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 1a65c2d1093..1d4d38918cd 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2196,6 +2196,13 @@ static struct console amba_console = { .data = &amba_reg, }; +static int __init pl011_console_init(void) +{ + register_console(&amba_console); + return 0; +} +console_initcall(pl011_console_init); + #define AMBA_CONSOLE (&amba_console) #else #define AMBA_CONSOLE NULL |