提交 70b2fe35 编写于 作者: A Andy Shevchenko 提交者: Greg Kroah-Hartman

serial: 8250_exar: Remove duplicate assignment

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 84b40e3b
...@@ -109,7 +109,6 @@ pci_fastcom335_setup(struct exar8250 *priv, struct pci_dev *pcidev, ...@@ -109,7 +109,6 @@ pci_fastcom335_setup(struct exar8250 *priv, struct pci_dev *pcidev,
u8 __iomem *p; u8 __iomem *p;
int err; int err;
port->port.flags |= UPF_EXAR_EFR;
port->port.uartclk = baud * 16; port->port.uartclk = baud * 16;
err = default_setup(priv, pcidev, idx, offset, port); err = default_setup(priv, pcidev, idx, offset, port);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册