Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a85b03ba authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Chris Lew
Browse files

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.

Change-Id: I42adaa317e408b73061f1c3d392699bec36b193e
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Patch-mainline: linux-arm-msm @ 27/03/2018, 23:07
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 4fc64a8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -483,7 +483,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;