serial: max310x: Remove IRQ validation
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 7 Feb 2014 14:16:08 +0000 (18:16 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 17:33:05 +0000 (09:33 -0800)
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>
drivers/tty/serial/max310x.c

index 3c93814b1648f6839deb3af050ed98d3cdce0a9e..ac1d54c574371dc612e442f515822edb040e70a7 100644 (file)
@@ -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;
This page took 0.030587 seconds and 5 git commands to generate.