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>
This commit is contained in:
Alexander Shiyan 2014-02-07 18:16:08 +04:00 committed by Greg Kroah-Hartman
parent e7b8a3ceff
commit bb157e50cd
1 changed files with 0 additions and 6 deletions

View 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;