提交 bb157e50 编写于 作者: A Alexander Shiyan 提交者: Greg Kroah-Hartman

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: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e7b8a3ce
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册