tty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 10 Sep 2019 04:11:29 +0000 (06:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 13:01:15 +0000 (15:01 +0200)
'exit' functions should be marked as __exit, not __init.

Fixes: fc60a8b675bd ("tty: serial: owl: Implement console driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20190910041129.6978-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/owl-uart.c

index 03963af77b15b88ab6e19e38fa7af25fc2f40407..d2d8b34946851deee4c946f5efdf2abce291c8ed 100644 (file)
@@ -740,7 +740,7 @@ static int __init owl_uart_init(void)
        return ret;
 }
 
-static void __init owl_uart_exit(void)
+static void __exit owl_uart_exit(void)
 {
        platform_driver_unregister(&owl_uart_platform_driver);
        uart_unregister_driver(&owl_uart_driver);