summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/max310x.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-07 18:16:08 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 21:33:05 +0400
commitbb157e50cd7e5100d22a98fb37dd4df4b8520ab1 (patch)
tree68f887960c430e37752ab63ebb20c2a2b706937c /drivers/tty/serial/max310x.c
parente7b8a3ceff5e5c4e2bd329717976b18ce033d7cd (diff)
downloadlinux-bb157e50cd7e5100d22a98fb37dd4df4b8520ab1.tar.xz
serial: max310x: Remove IRQ validation
This patch removes excess IRQ checks at driver probe(). IRQ validation is already provided by request_threaded_irq(). Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/max310x.c')
-rw-r--r--drivers/tty/serial/max310x.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c
index 3c93814b1648..ac1d54c57437 100644
--- a/drivers/tty/serial/max310x.c
+++ b/drivers/tty/serial/max310x.c
@@ -1081,12 +1081,6 @@ static int max310x_probe(struct device *dev, int is_spi,
struct max310x_pdata *pdata = dev_get_platdata(dev);
int i, ret, uartclk;
- /* Check for IRQ */
- if (irq <= 0) {
- dev_err(dev, "No IRQ specified\n");
- return -ENOTSUPP;
- }
-
if (!pdata) {
dev_err(dev, "No platform data supplied\n");
return -EINVAL;