diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-03-28 00:06:42 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-03-28 07:54:36 +0300 |
commit | 7586516ca043d55ed1ca563df72bc216c948cad4 (patch) | |
tree | 24cbbd6e5eadd7850a028bf7d9a721e502599739 | |
parent | 6ddf12d397aee75dbd24dd02be07c1372e3008f6 (diff) | |
download | linux-7586516ca043d55ed1ca563df72bc216c948cad4.tar.xz |
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>
-rw-r--r-- | drivers/rpmsg/rpmsg_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rpmsg/rpmsg_core.c b/drivers/rpmsg/rpmsg_core.c index 5a081762afcc..920a02f0462c 100644 --- a/drivers/rpmsg/rpmsg_core.c +++ b/drivers/rpmsg/rpmsg_core.c @@ -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; |