diff options
-rw-r--r-- | drivers/tty/serial/8250/8250_pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index a795bd971eaa..26b9dc012ed0 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c | |||
@@ -1172,6 +1172,8 @@ pci_xr17v35x_setup(struct serial_private *priv, | |||
1172 | u8 __iomem *p; | 1172 | u8 __iomem *p; |
1173 | 1173 | ||
1174 | p = pci_ioremap_bar(priv->dev, 0); | 1174 | p = pci_ioremap_bar(priv->dev, 0); |
1175 | if (p == NULL) | ||
1176 | return -ENOMEM; | ||
1175 | 1177 | ||
1176 | port->port.flags |= UPF_EXAR_EFR; | 1178 | port->port.flags |= UPF_EXAR_EFR; |
1177 | 1179 | ||