diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-25 09:45:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-25 10:02:21 +0200 |
commit | 0fb8de638c76d7387bb7d76bf7e491392b72a651 (patch) | |
tree | e294508979aab69936089d692fa2d97783574c4b /drivers/staging | |
parent | 943f5a04e154936a6a42b8e377c301e7db372283 (diff) |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c index f61ac87fedcb..c7d431daa406 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; } |