1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/xilinx
Dan Carpenter ef45e8400f net: ll_temac: fix error checking of irq_of_parse_and_map()
Most kernel functions return negative error codes but some irq functions
return zero on error.  In this code irq_of_parse_and_map(), returns zero
and platform_get_irq() returns negative error codes.  We need to handle
both cases appropriately.

Fixes: 8425c41d1e ("net: ll_temac: Extend support to non-device-tree platforms")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Esben Haabendal <esben@geanix.com>
Reviewed-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Harini Katakam <harini.katakam@amd.com>
Link: https://lore.kernel.org/r/3d0aef75-06e0-45a5-a2a6-2cc4738d4143@moroto.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-01 14:38:17 -07:00
..
Kconfig net: ethernet: xilinx: cleanup comments 2022-02-18 11:11:10 +00:00
ll_temac.h net: ll_temac: fix the format of block comments 2022-09-21 18:25:18 -07:00
ll_temac_main.c net: ll_temac: fix error checking of irq_of_parse_and_map() 2023-08-01 14:38:17 -07:00
ll_temac_mdio.c net: ll_temac: fix the format of block comments 2022-09-21 18:25:18 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xilinx_axienet.h net: axienet: Unexport and remove unused mdio functions 2022-11-21 10:36:03 +00:00
xilinx_axienet_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-06-27 09:45:22 -07:00
xilinx_axienet_mdio.c net: axienet: set mdio clock according to bus-frequency 2022-11-21 10:36:03 +00:00
xilinx_emaclite.c net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-12 09:56:17 +00:00