Skip to content

Commit

Permalink
[ARM] 5505/1: serial amba-pl011: move to arch_initcall for earlier co…
Browse files Browse the repository at this point in the history
…nsole

Signed-off-by: Alessandro Rubini <rubini@unipv.it>"
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Alessandro Rubini authored and Russell King committed May 31, 2009
1 parent 5a9d251 commit 4dd9e74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/serial/amba-pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,11 @@ static void __exit pl011_exit(void)
uart_unregister_driver(&amba_reg);
}

module_init(pl011_init);
/*
* 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_exit(pl011_exit);

MODULE_AUTHOR("ARM Ltd/Deep Blue Solutions Ltd");
Expand Down

0 comments on commit 4dd9e74

Please sign in to comment.