From: Mauro Carvalho Chehab Date: Fri, 25 Jun 2021 07:45:59 +0000 (+0200) Subject: staging: hi6421-spmi-pmic: change a return code X-Git-Tag: v5.15~790^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fb8de638c76d7387bb7d76bf7e491392b72a651;p=platform%2Fkernel%2Flinux-starfive.git staging: hi6421-spmi-pmic: change a return code return -ENODEV if irq_create_mapping() fails at probing time. Suggested-by: Lee Jones Signed-off-by: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/e978eabd99c0d3c471026659a2c585deb706e2c4.1624606660.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c index f61ac87..c7d431d 100644 --- a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c +++ b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c @@ -245,7 +245,7 @@ static int hi6421_spmi_pmic_probe(struct spmi_device *pdev) virq = irq_create_mapping(ddata->domain, i); if (!virq) { dev_err(dev, "Failed to map H/W IRQ\n"); - return -ENOSPC; + return -ENODEV; } ddata->irqs[i] = virq; }