serial: 8250_exar: Remove duplicate assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Apr 2017 13:00:30 +0000 (16:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:19:16 +0000 (16:19 +0200)
UPF_EXAR_EFR is set globally for each port enumerated by the driver.
Thus, no need to repeat this in individual ->setup() hook.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c

index 1270ff163f637bf5c61f7cbf3ad3ff51c69366b9..2a8f00d96e6b15fa73864447b5bc90a0ac5c70bc 100644 (file)
@@ -109,7 +109,6 @@ pci_fastcom335_setup(struct exar8250 *priv, struct pci_dev *pcidev,
        u8 __iomem *p;
        int err;
 
-       port->port.flags |= UPF_EXAR_EFR;
        port->port.uartclk = baud * 16;
 
        err = default_setup(priv, pcidev, idx, offset, port);