Commit 324facd1 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

serial: 8250_mid: Remove unneeded test for ->setup() presence

All supported platforms by this driver require ->setup() and ->exit().
Remove unneeded test for ->setup() presence.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220215101111.47250-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2394f359
...@@ -312,11 +312,9 @@ static int mid8250_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -312,11 +312,9 @@ static int mid8250_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (!uart.port.membase) if (!uart.port.membase)
return -ENOMEM; return -ENOMEM;
if (mid->board->setup) { ret = mid->board->setup(mid, &uart.port);
ret = mid->board->setup(mid, &uart.port); if (ret)
if (ret) return ret;
return ret;
}
ret = mid8250_dma_setup(mid, &uart); ret = mid8250_dma_setup(mid, &uart);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment