mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
staging: hi6421-spmi-pmic: change a return code
return -ENODEV if irq_create_mapping() fails at probing time. Suggested-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/e978eabd99c0d3c471026659a2c585deb706e2c4.1624606660.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
943f5a04e1
commit
0fb8de638c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue