Skip to content

Commit bc97139

Browse files
ChiaEn Wusre
authored andcommitted
power: supply: rt9467: Fix passing zero to 'dev_err_probe'
Fix passing zero to 'dev_err_probe()' in 'rt9467_request_interrupt()' Fixes: 6f7f70e ("power: supply: rt9467: Add Richtek RT9467 charger driver") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: ChiaEn Wu <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 155c45a commit bc97139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/rt9467-charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ static int rt9467_request_interrupt(struct rt9467_chg_data *data)
10231023
for (i = 0; i < num_chg_irqs; i++) {
10241024
virq = regmap_irq_get_virq(data->irq_chip_data, chg_irqs[i].hwirq);
10251025
if (virq <= 0)
1026-
return dev_err_probe(dev, virq, "Failed to get (%s) irq\n",
1026+
return dev_err_probe(dev, -EINVAL, "Failed to get (%s) irq\n",
10271027
chg_irqs[i].name);
10281028

10291029
ret = devm_request_threaded_irq(dev, virq, NULL, chg_irqs[i].handler,

0 commit comments

Comments
 (0)