diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-09-10 05:59:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-29 09:21:41 +0100 |
commit | aae053ad734915fe207536c6400ed3dbc0937e93 (patch) | |
tree | c335c848a3f9052e0252eb0f7462f5377630ce24 /arch/mips/loongson64/common/serial.c | |
parent | 3e18db7ecf6605bf11d10be93608b30f6b5c1e68 (diff) | |
download | linux-stable-aae053ad734915fe207536c6400ed3dbc0937e93.tar.gz linux-stable-aae053ad734915fe207536c6400ed3dbc0937e93.tar.bz2 linux-stable-aae053ad734915fe207536c6400ed3dbc0937e93.zip |
mips: Loongson: Fix the link time qualifier of 'serial_exit()'
[ Upstream commit 25b69a889b638b0b7e51e2c4fe717a66bec0e566 ]
'exit' functions should be marked as __exit, not __init.
Fixes: 85cc028817ef ("mips: make loongsoon serial driver explicitly modular")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: chenhc@lemote.com
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/mips/loongson64/common/serial.c')
-rw-r--r-- | arch/mips/loongson64/common/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/loongson64/common/serial.c b/arch/mips/loongson64/common/serial.c index ffefc1cb2612..98c3a7feb10f 100644 --- a/arch/mips/loongson64/common/serial.c +++ b/arch/mips/loongson64/common/serial.c @@ -110,7 +110,7 @@ static int __init serial_init(void) } module_init(serial_init); -static void __init serial_exit(void) +static void __exit serial_exit(void) { platform_device_unregister(&uart8250_device); } |