summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/soc/qcom/subsystem_notif_virt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/subsystem_notif_virt.c b/drivers/soc/qcom/subsystem_notif_virt.c
index fb6697b25f05..f8ce53cfa9f7 100644
--- a/drivers/soc/qcom/subsystem_notif_virt.c
+++ b/drivers/soc/qcom/subsystem_notif_virt.c
@@ -176,7 +176,7 @@ static int subsys_notif_virt_probe(struct platform_device *pdev)
case VIRTUAL:
subsystem->ssr_irq =
of_irq_get_byname(child, "state-irq");
- if (IS_ERR_OR_NULL(subsystem->ssr_irq)) {
+ if (subsystem->ssr_irq < 0) {
dev_err(&pdev->dev, "Could not find IRQ\n");
ret = -EINVAL;
goto err;