Skip to content

Commit db3fc6e

Browse files
andy-shevgregkh
authored andcommitted
pinctrl: cy8c95x0: Avoid returning positive values to user space
[ Upstream commit 5ad32c3 ] When probe fails due to unclear interrupt status register, it returns a positive number instead of the proper error code. Fix this accordingly. Fixes: e6cbbe4 ("pinctrl: Add Cypress cy8c95x0 support") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202602271847.vVWkqLBD-lkp@intel.com/ Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a6a17c9 commit db3fc6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/pinctrl-cy8c95x0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ static int cy8c95x0_irq_setup(struct cy8c95x0_pinctrl *chip, int irq)
13201320
/* Read IRQ status register to clear all pending interrupts */
13211321
ret = cy8c95x0_irq_pending(chip, pending_irqs);
13221322
if (ret)
1323-
return dev_err_probe(dev, ret, "failed to clear irq status register\n");
1323+
return dev_err_probe(dev, -EBUSY, "failed to clear irq status register\n");
13241324

13251325
/* Mask all interrupts */
13261326
bitmap_fill(chip->irq_mask, MAX_LINE);

0 commit comments

Comments
 (0)