1
0
Fork 0

fpga: socfpga: Fix check of return value of devm_request_irq

The return value should be checked for non-zero, instead
of checking it being IS_ERR_VALUE().

Acked-by: Alan Tull <atull@opensource.altera.com>
Reviewed-by: Josh Cartwright <joshc@eso.teric.us>
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Moritz Fischer 2015-10-29 08:56:31 -07:00 committed by Greg Kroah-Hartman
parent 2cb202c188
commit e2d8680741
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ static int socfpga_fpga_probe(struct platform_device *pdev)
ret = devm_request_irq(dev, priv->irq, socfpga_fpga_isr, 0,
dev_name(dev), priv);
if (IS_ERR_VALUE(ret))
if (ret)
return ret;
return fpga_mgr_register(dev, "Altera SOCFPGA FPGA Manager",