Skip to content

Commit

Permalink
rpmsg: Only invoke announce_create for rpdev with endpoints
Browse files Browse the repository at this point in the history
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: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
Bjorn Andersson committed Mar 28, 2018
1 parent 6ddf12d commit 7586516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rpmsg/rpmsg_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static int rpmsg_dev_probe(struct device *dev)
goto out;
}

if (rpdev->ops->announce_create)
if (ept && rpdev->ops->announce_create)
err = rpdev->ops->announce_create(rpdev);
out:
return err;
Expand Down

0 comments on commit 7586516

Please sign in to comment.