]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
serial: of_serial: do not set port.type twice
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 8 May 2015 04:03:13 +0000 (13:03 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 17:10:08 +0000 (19:10 +0200)
The port.type has already been set by of_platform_serial_setup()
called from a few lines above.
Setting it to the same value is redundant.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/of_serial.c

index 137381e649e5bec1c2ac5bf616bc9da6e813772a..28b9b4789bbfd27d5efa4ca20dba2286a755d228 100644 (file)
@@ -188,7 +188,6 @@ static int of_platform_serial_probe(struct platform_device *ofdev)
        {
                struct uart_8250_port port8250;
                memset(&port8250, 0, sizeof(port8250));
-               port.type = port_type;
                port8250.port = port;
 
                if (port.fifosize)