Merge tag 'iwlwifi-for-kalle-2015-01-15' of https://git.kernel.org/pub/scm/linux...
[firefly-linux-kernel-4.4.55.git] / drivers / tty / serial / timbuart.c
index 0d11d5032b938e4df90522717b08e6d4fd3e8ab1..512c162634a37d382fb78b269ec419e9fea52cf7 100644 (file)
@@ -273,6 +273,8 @@ static void timbuart_shutdown(struct uart_port *port)
        dev_dbg(port->dev, "%s\n", __func__);
        free_irq(port->irq, uart);
        iowrite32(0, port->membase + TIMBUART_IER);
+
+       timbuart_flush_buffer(port);
 }
 
 static int get_bindex(int baud)
@@ -501,7 +503,6 @@ static int timbuart_remove(struct platform_device *dev)
 static struct platform_driver timbuart_platform_driver = {
        .driver = {
                .name   = "timb-uart",
-               .owner  = THIS_MODULE,
        },
        .probe          = timbuart_probe,
        .remove         = timbuart_remove,