mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
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: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
6ddf12d397
commit
7586516ca0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue