From: Alexander Shiyan Date: Fri, 7 Feb 2014 14:16:08 +0000 (+0400) Subject: serial: max310x: Remove IRQ validation X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bb157e50cd7e5100d22a98fb37dd4df4b8520ab1;p=deliverable%2Flinux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;