Skip to content

Commit

Permalink
serial: max310x: Remove IRQ validation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shiyan authored and Greg Kroah-Hartman committed Feb 13, 2014
1 parent e7b8a3c commit bb157e5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/tty/serial/max310x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb157e5

Please sign in to comment.