Commit fd629294 authored by Wei Yongjun's avatar Wei Yongjun Committed by Dmitry Torokhov

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: 24d28e4f ("Input: synaptics-rmi4 - convert irq distribution to irq_domain")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 24d28e4f
...@@ -1043,7 +1043,7 @@ int rmi_probe_interrupts(struct rmi_driver_data *data) ...@@ -1043,7 +1043,7 @@ int rmi_probe_interrupts(struct rmi_driver_data *data)
data); data);
if (!data->irqdomain) { if (!data->irqdomain) {
dev_err(&rmi_dev->dev, "Failed to create IRQ domain\n"); dev_err(&rmi_dev->dev, "Failed to create IRQ domain\n");
return PTR_ERR(data->irqdomain); return -ENOMEM;
} }
data->irq_count = irq_count; data->irq_count = irq_count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment