diff options
author | Mark Brown <broonie@kernel.org> | 2015-11-26 11:59:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-30 15:19:44 -0500 |
commit | 0f2c0d32e6536ad39c3e9589d42c53d0ee3bfa08 (patch) | |
tree | d6bd49c6155f5b1ad26ab3412fc94b0d15daa4ec /sound/oss/pas2_card.c | |
parent | fea0f6650979a4fddd3f3fe255563ed15a2fc318 (diff) | |
download | op-kernel-dev-0f2c0d32e6536ad39c3e9589d42c53d0ee3bfa08.zip op-kernel-dev-0f2c0d32e6536ad39c3e9589d42c53d0ee3bfa08.tar.gz |
net: fsl: Fix error checking for platform_get_irq()
The gianfar driver has recently been enabled on arm64 but fails to build
since it check the return value of platform_get_irq() against NO_IRQ. Fix
this by instead checking for a negative error code.
Even on ARM where this code was previously being built this check was
incorrect since platform_get_irq() returns a negative error code which
may not be exactly the (unsigned int)(-1) that NO_IRQ is defined to be.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/oss/pas2_card.c')
0 files changed, 0 insertions, 0 deletions