aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/rda-uart.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2019-09-10 06:17:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-04 15:01:15 +0200
commit5080d127127ac5b610b57900774d9559ae55e817 (patch)
treee3e6e8e1e638169fa1f97ec7758ca3781e423ee8 /drivers/tty/serial/rda-uart.c
parenttty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()' (diff)
downloadlinux-dev-5080d127127ac5b610b57900774d9559ae55e817.tar.xz
linux-dev-5080d127127ac5b610b57900774d9559ae55e817.zip
tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()'
'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>
Diffstat (limited to 'drivers/tty/serial/rda-uart.c')
-rw-r--r--drivers/tty/serial/rda-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/rda-uart.c b/drivers/tty/serial/rda-uart.c
index c1b0d7662ef9..ff9a27d48bca 100644
--- a/drivers/tty/serial/rda-uart.c
+++ b/drivers/tty/serial/rda-uart.c
@@ -815,7 +815,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);