rpmsg: Only invoke announce_create for rpdev with endpoints
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 27 Mar 2018 21:06:42 +0000 (14:06 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 28 Mar 2018 04:54:36 +0000 (21:54 -0700)
commit7586516ca043d55ed1ca563df72bc216c948cad4
tree24cbbd6e5eadd7850a028bf7d9a721e502599739
parent6ddf12d397aee75dbd24dd02be07c1372e3008f6
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>
drivers/rpmsg/rpmsg_core.c