linux_old1/drivers/net/ethernet/freescale
Mark Brown 0f2c0d32e6 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>
2015-11-30 15:19:44 -05:00
..
fs_enet net: fs_enet: mask interrupts for TX partial frames. 2015-08-11 12:05:34 -07:00
Kconfig net: fsl: expands dependencies of NET_VENDOR_FREESCALE 2015-11-23 12:11:58 -05:00
Makefile gianfar: Remove sysfs stubs for FIFOCFG and stashing 2014-02-18 15:03:02 -05:00
fec.h net: fec: introduce fec_ptp_stop and use in probe fail path 2015-07-26 21:51:53 -07:00
fec_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-11-03 13:41:45 -05:00
fec_mpc52xx.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00
fec_mpc52xx.h
fec_mpc52xx_phy.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00
fec_ptp.c net: fec: avoid timespec use 2015-10-05 03:16:39 -07:00
fsl_pq_mdio.c net/fsl_pq_mdio: fix computed address for the TBI register 2015-10-13 04:29:55 -07:00
gianfar.c net: fsl: Don't use NO_IRQ to check return value of irq_of_parse_and_map() 2015-11-30 15:19:44 -05:00
gianfar.h gianfar: Add WAKE_UCAST and "wake-on-filer" support 2015-10-07 04:19:45 -07:00
gianfar_ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-11-01 00:15:30 -04:00
gianfar_ptp.c net: fsl: Fix error checking for platform_get_irq() 2015-11-30 15:19:44 -05:00
ucc_geth.c net: fix phy refcounting in a bunch of drivers 2015-09-24 23:04:53 -07:00
ucc_geth.h net: remove skb recycling 2012-10-07 00:40:54 -04:00
ucc_geth_ethtool.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
xgmac_mdio.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00