diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2015-10-29 16:56:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-29 23:20:25 +0100 |
commit | e2d8680741edec84f843f783a7f4a44418b818d7 (patch) | |
tree | 9603cf5b1bdb64748b9ff6fe7d5c2c5e33dcd1f0 /drivers/fpga/socfpga.c | |
parent | lkdtm: fix ACCESS_USERSPACE test (diff) | |
download | linux-e2d8680741edec84f843f783a7f4a44418b818d7.tar.xz linux-e2d8680741edec84f843f783a7f4a44418b818d7.zip |
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>
Diffstat (limited to 'drivers/fpga/socfpga.c')
-rw-r--r-- | drivers/fpga/socfpga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index 706b80d25266..27d2ff28132c 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -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", |