Skip to content

Commit 0a1db19

Browse files
saschahauerBartosz Golaszewski
authored andcommitted
gpio: pca953x: fix wrong error probe return value
The second argument to dev_err_probe() is the error value. Pass the return value of devm_request_threaded_irq() there instead of the irq number. Signed-off-by: Sascha Hauer <[email protected]> Fixes: c47f7ff ("gpio: pca953x: Utilise dev_err_probe() where it makes sense") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent e6382fc commit 0a1db19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-pca953x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip, int irq_base)
974974
IRQF_ONESHOT | IRQF_SHARED, dev_name(dev),
975975
chip);
976976
if (ret)
977-
return dev_err_probe(dev, client->irq, "failed to request irq\n");
977+
return dev_err_probe(dev, ret, "failed to request irq\n");
978978

979979
return 0;
980980
}

0 commit comments

Comments
 (0)