fpga: socfpga: Fix check of return value of devm_request_irq
authorMoritz Fischer <moritz.fischer@ettus.com>
Thu, 29 Oct 2015 15:56:31 +0000 (08:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2015 22:20:25 +0000 (15:20 -0700)
commite2d8680741edec84f843f783a7f4a44418b818d7
tree9603cf5b1bdb64748b9ff6fe7d5c2c5e33dcd1f0
parent2cb202c1886ca363305fba82e340bdbd71387079
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>
drivers/fpga/socfpga.c