linux/drivers/power
Pan Bian 838c8afa67 power: supply: cpcap-charger: fix incorrect return value check
Function platform_get_irq_byname() returns a negative error code on
failure, and a zero or positive number on success. However, in function
cpcap_usb_init_irq(), positive IRQ numbers are also taken as error
cases. Use "if (irq < 0)" instead of "if (!irq)" to validate the return
value of platform_get_irq_byname().

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
2017-11-13 11:56:12 +01:00
..
avs PM / AVS: rockchip-io: add io selectors and supplies for RV1108 2017-08-25 01:45:23 +02:00
reset power: reset: Convert to using %pOF instead of full_name 2017-07-24 14:09:31 +02:00
supply power: supply: cpcap-charger: fix incorrect return value check 2017-11-13 11:56:12 +01:00
Kconfig power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00
Makefile power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00