From: Christophe JAILLET Date: Tue, 10 Sep 2019 04:17:02 +0000 (+0200) Subject: tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()' X-Git-Tag: Ubuntu-5.3.0-24.26~284 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=faa07305c0ecc7de5b3582d12a63d6287aeae1ff;p=mirror_ubuntu-eoan-kernel.git tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()' 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 Link: https://lore.kernel.org/r/20190910041702.7357-1-christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin Signed-off-by: Connor Kuehl Signed-off-by: Khalid Elmously --- diff --git a/drivers/tty/serial/rda-uart.c b/drivers/tty/serial/rda-uart.c index 284623eefaeb..ba5e488a0374 100644 --- a/drivers/tty/serial/rda-uart.c +++ b/drivers/tty/serial/rda-uart.c @@ -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);