aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini@gnudd.com>2009-05-05 00:54:13 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-05-31 09:58:11 -0400
commit4dd9e742df98f8f600b4302d3adbb087a68237f7 (patch)
treeccaeafd95024a88343c4fd4af25f5866e31153d4 /drivers/serial
parent5a9d25150c01bd140ca647b5e7ee75ae18a369a8 (diff)
[ARM] 5505/1: serial amba-pl011: move to arch_initcall for earlier console
Signed-off-by: Alessandro Rubini <rubini@unipv.it>" Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/amba-pl011.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
index 88fdac51b6c5..4cfa1eb26892 100644
--- a/drivers/serial/amba-pl011.c
+++ b/drivers/serial/amba-pl011.c
@@ -845,7 +845,11 @@ static void __exit pl011_exit(void)
845 uart_unregister_driver(&amba_reg); 845 uart_unregister_driver(&amba_reg);
846} 846}
847 847
848module_init(pl011_init); 848/*
849 * While this can be a module, if builtin it's most likely the console
850 * So let's leave module_exit but move module_init to an earlier place
851 */
852arch_initcall(pl011_init);
849module_exit(pl011_exit); 853module_exit(pl011_exit);
850 854
851MODULE_AUTHOR("ARM Ltd/Deep Blue Solutions Ltd"); 855MODULE_AUTHOR("ARM Ltd/Deep Blue Solutions Ltd");