serial/sc16is7xx: Remove obsolete #ifset TIOC[SG]RS485
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Wed, 8 Oct 2014 19:57:28 +0000 (21:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:29:05 +0000 (19:29 -0800)
Commit e676253b19b2 ("serial/8250: Add support for RS485 IOCTLs") added
references to TIOC[SG]RS48 on 8250_core.c. This change triggered the
need to define them in all the arches that uses tty/serial.

This made #ifdef TIOC[SG]RS48 obsolete.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: linux-serial@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c

index 6246820d7f059cc52f977997dc01b8a45c28a16b..7a7911384eca7c1156c79b5e645eafba710d859c 100644 (file)
@@ -830,7 +830,6 @@ static void sc16is7xx_set_termios(struct uart_port *port,
        uart_update_timeout(port, termios->c_cflag, baud);
 }
 
-#if defined(TIOCSRS485) && defined(TIOCGRS485)
 static void sc16is7xx_config_rs485(struct uart_port *port,
                                   struct serial_rs485 *rs485)
 {
@@ -848,12 +847,10 @@ static void sc16is7xx_config_rs485(struct uart_port *port,
                                      0);
        }
 }
-#endif
 
 static int sc16is7xx_ioctl(struct uart_port *port, unsigned int cmd,
                           unsigned long arg)
 {
-#if defined(TIOCSRS485) && defined(TIOCGRS485)
        struct serial_rs485 rs485;
 
        switch (cmd) {
@@ -872,7 +869,6 @@ static int sc16is7xx_ioctl(struct uart_port *port, unsigned int cmd,
        default:
                break;
        }
-#endif
 
        return -ENOIOCTLCMD;
 }