Commit 5080d127 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman

tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()'

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

Fixes: c10b1332 ("tty: serial: Add RDA8810PL UART driver")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20190910041702.7357-1-christophe.jaillet@wanadoo.frSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6264dab6
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment