Skip to content

Commit 1a358d3

Browse files
krzkandersson
authored andcommitted
rpmsg: qcom_smd: Fix irq_of_parse_and_map() return value
The irq_of_parse_and_map() returns 0 on failure, not a negative ERRNO. Fixes: 53e2822 ("rpmsg: Introduce Qualcomm SMD backend") Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ce522ba commit 1a358d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rpmsg/qcom_smd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ static int qcom_smd_parse_edge(struct device *dev,
14071407
edge->name = node->name;
14081408

14091409
irq = irq_of_parse_and_map(node, 0);
1410-
if (irq < 0) {
1410+
if (!irq) {
14111411
dev_err(dev, "required smd interrupt missing\n");
14121412
ret = irq;
14131413
goto put_node;

0 commit comments

Comments
 (0)