summaryrefslogtreecommitdiffstats
path: root/drivers/input/rmi4
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-06-11 10:09:15 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-06-11 10:19:08 -0700
commitfd629294759b1e6e5dfc0c9bf892e63553dcc6fa (patch)
treef93f53e48c55a72add235d1cd5b0757d0afe74c4 /drivers/input/rmi4
parent24d28e4f1271cb2f91613dada8f2acccd00eff56 (diff)
downloadlinux-fd629294759b1e6e5dfc0c9bf892e63553dcc6fa.tar.bz2
Input: synaptics-rmi4 - fix the error return code in rmi_probe_interrupts()
The error return code PTR_ERR(data->irqdomain) is always 0 since data->irqdomain is equal to NULL in this error handling case. Fixes: 24d28e4f1271 ("Input: synaptics-rmi4 - convert irq distribution to irq_domain") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/rmi4')
-rw-r--r--drivers/input/rmi4/rmi_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
index 2fb0ae0bdfe3..cb6d983e8033 100644
--- a/drivers/input/rmi4/rmi_driver.c
+++ b/drivers/input/rmi4/rmi_driver.c
@@ -1043,7 +1043,7 @@ int rmi_probe_interrupts(struct rmi_driver_data *data)
data);
if (!data->irqdomain) {
dev_err(&rmi_dev->dev, "Failed to create IRQ domain\n");
- return PTR_ERR(data->irqdomain);
+ return -ENOMEM;
}
data->irq_count = irq_count;