Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",