提交 6264dab6 编写于 作者: C Christophe JAILLET 提交者: Greg Kroah-Hartman

tty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()'

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

Fixes: fc60a8b6 ("tty: serial: owl: Implement console driver")
Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20190910041129.6978-1-christophe.jaillet@wanadoo.frSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 54ecb8f7
...@@ -740,7 +740,7 @@ static int __init owl_uart_init(void) ...@@ -740,7 +740,7 @@ static int __init owl_uart_init(void)
return ret; return ret;
} }
static void __init owl_uart_exit(void) static void __exit owl_uart_exit(void)
{ {
platform_driver_unregister(&owl_uart_platform_driver); platform_driver_unregister(&owl_uart_platform_driver);
uart_unregister_driver(&owl_uart_driver); uart_unregister_driver(&owl_uart_driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册