]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 10 Sep 2019 04:17:02 +0000 (06:17 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:08 +0000 (18:47 +0100)
BugLink: https://bugs.launchpad.net/bugs/1851550
[ Upstream commit 5080d127127ac5b610b57900774d9559ae55e817 ]

'exit' functions should be marked as __exit, not __init.

Fixes: c10b13325ced ("tty: serial: Add RDA8810PL UART driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20190910041702.7357-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/serial/rda-uart.c

index 284623eefaeba2aeba275b08193ffaa8738905fa..ba5e488a0374263dd12ae6c98636cb4675d5a6ed 100644 (file)
@@ -817,7 +817,7 @@ static int __init rda_uart_init(void)
        return ret;
 }
 
-static void __init rda_uart_exit(void)
+static void __exit rda_uart_exit(void)
 {
        platform_driver_unregister(&rda_uart_platform_driver);
        uart_unregister_driver(&rda_uart_driver);