Files
linux/drivers
YueHaibing 4ff840604a sfp: Fix error handing in sfp_probe()
[ Upstream commit 9621618130 ]

gpiod_to_irq() never return 0, but returns negative in
case of error, check it and set gpio_irq to 0.

Fixes: 7397005545 ("sfp: add SFP module support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201031031053.25264-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 12:35:54 +01:00
..
2020-09-09 19:04:23 +02:00
2019-05-14 19:17:53 +02:00
2020-10-29 09:55:13 +01:00
2020-11-10 12:35:54 +01:00
2019-07-26 09:14:05 +02:00
2018-12-21 14:15:17 +01:00
2020-10-29 09:55:05 +01:00
2018-11-13 11:08:51 -08:00
2020-02-24 08:34:47 +01:00