mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
rpmsg: qcom_smd: Fix irq_of_parse_and_map() return value
[ Upstream commit1a358d3506] The irq_of_parse_and_map() returns 0 on failure, not a negative ERRNO. Fixes:53e2822e56("rpmsg: Introduce Qualcomm SMD backend") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220422105326.78713-1-krzysztof.kozlowski@linaro.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Chris
parent
bf68c7a8d8
commit
de08a06713
@@ -1258,7 +1258,7 @@ static int qcom_smd_parse_edge(struct device *dev,
|
||||
}
|
||||
|
||||
irq = irq_of_parse_and_map(node, 0);
|
||||
if (irq < 0) {
|
||||
if (!irq) {
|
||||
dev_err(dev, "required smd interrupt missing\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user