提交 7586516c 编写于 作者: B Bjorn Andersson

rpmsg: Only invoke announce_create for rpdev with endpoints

For special rpmsg devices without a primary endpoint there is nothing to
announce so don't call the backend announce create function if we didn't
create an endpoint.
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
上级 6ddf12d3
...@@ -442,7 +442,7 @@ static int rpmsg_dev_probe(struct device *dev) ...@@ -442,7 +442,7 @@ static int rpmsg_dev_probe(struct device *dev)
goto out; goto out;
} }
if (rpdev->ops->announce_create) if (ept && rpdev->ops->announce_create)
err = rpdev->ops->announce_create(rpdev); err = rpdev->ops->announce_create(rpdev);
out: out:
return err; return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册