Skip to content

Commit f3d0fba

Browse files
jhovoldandersson
authored andcommitted
firmware: qcom: scm: fix bogus irq error at probe
A recent commit added support for an optional interrupt which is only available on some platforms. Stop spamming the logs with bogus error messages on platforms that do not use this new optional resource: qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found Fixes: 6bf3259 ("firmware: qcom: scm: Add wait-queue handling logic") Cc: Guru Das Srinagesh <[email protected]> Cc: Sibi Sankar <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Tested-by: Steev Klimaszewski <[email protected]> # Thinkpad X13s Acked-by: Guru Das Srinagesh <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 749d56b commit f3d0fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/qcom_scm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev)
14791479

14801480
init_completion(&__scm->waitq_comp);
14811481

1482-
irq = platform_get_irq(pdev, 0);
1482+
irq = platform_get_irq_optional(pdev, 0);
14831483
if (irq < 0) {
14841484
if (irq != -ENXIO)
14851485
return irq;

0 commit comments

Comments
 (0)