diff options
author | Mark Brown <broonie@kernel.org> | 2015-11-26 14:59:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-30 23:19:44 +0300 |
commit | fea0f6650979a4fddd3f3fe255563ed15a2fc318 (patch) | |
tree | 7e5bd59b963f6e46d1c8cf7afb0fa0e16c6622dc /drivers/net/ethernet/freescale/gianfar_ptp.c | |
parent | 9490f886b192964796285907d777ff00fba1fa0f (diff) | |
download | linux-fea0f6650979a4fddd3f3fe255563ed15a2fc318.tar.xz |
net: fsl: Don't use NO_IRQ to check return value of irq_of_parse_and_map()
This driver can be built on arm64 but relies on NO_IRQ to check the return
value of irq_of_parse_and_map() which fails to build on arm64 because the
architecture does not provide a NO_IRQ. Fix this to correctly check the
return value of irq_of_parse_and_map().
Even on ARM systems where the driver was previously used the check was
broken since on ARM NO_IRQ is -1 but irq_of_parse_and_map() returns 0 on
error.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar_ptp.c')
0 files changed, 0 insertions, 0 deletions