Commit e2d86807 authored by Moritz Fischer's avatar Moritz Fischer Committed by Greg Kroah-Hartman

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: default avatarAlan Tull <atull@opensource.altera.com>
Reviewed-by: default avatarJosh Cartwright <joshc@eso.teric.us>
Signed-off-by: default avatarMoritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2cb202c1
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment