diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/amba-pl011.c | 6 |
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 | ||
848 | module_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 | */ | ||
852 | arch_initcall(pl011_init); | ||
849 | module_exit(pl011_exit); | 853 | module_exit(pl011_exit); |
850 | 854 | ||
851 | MODULE_AUTHOR("ARM Ltd/Deep Blue Solutions Ltd"); | 855 | MODULE_AUTHOR("ARM Ltd/Deep Blue Solutions Ltd"); |