Skip to content

Commit 7586516

Browse files
committed
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 <[email protected]>
1 parent 6ddf12d commit 7586516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rpmsg/rpmsg_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ static int rpmsg_dev_probe(struct device *dev)
442442
goto out;
443443
}
444444

445-
if (rpdev->ops->announce_create)
445+
if (ept && rpdev->ops->announce_create)
446446
err = rpdev->ops->announce_create(rpdev);
447447
out:
448448
return err;

0 commit comments

Comments
 (0)