diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2013-01-12 21:58:03 +0800 |
---|---|---|
committer | Guodong Xu <guodong.xu@linaro.org> | 2013-02-21 16:12:14 +0800 |
commit | 3c59cde68e48c39c4c0828cfb32e687d5ea28126 (patch) | |
tree | d6074d44de7691b775ff292c322a809e685e195e | |
parent | fbbcd248ae62009bd5fd52342503bcc43587a1a1 (diff) |
tty: serial: use module_init on pl011_init
If amba serial driver is probed defer, amba serial driver may be
probed after init process. So the error log shows in below.
[ 0.389403] Warning: unable to open an initial console.
[ 0.390107] Freeing init memory: 2328K
It results in serial console not enabled. So replace arch_initcall
by module_init on pl011_init(). The boot sequence is changed in below.
pinctrl driver --> amba serial driver --> init process
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-serial@vger.kernel.org
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 1297275c822..e40f7087f1e 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2132,11 +2132,7 @@ static void __exit pl011_exit(void) uart_unregister_driver(&amba_reg); } -/* - * While this can be a module, if builtin it's most likely the console - * So let's leave module_exit but move module_init to an earlier place - */ -arch_initcall(pl011_init); +module_init(pl011_init); module_exit(pl011_exit); MODULE_AUTHOR("ARM Ltd/Deep Blue Solutions Ltd"); |