rpmsg: Support drivers without primary endpoint
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 8 Oct 2016 04:23:13 +0000 (21:23 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 Oct 2016 22:41:55 +0000 (15:41 -0700)
commitbbd188092e3bd7536583b37e7d7d2e38a65de74d
treeb815146f5b7d48a1a90f5e6b49265ae27d3defda
parente950604782440c8635d289552bb5db58658fcbe9
rpmsg: Support drivers without primary endpoint

Some types of rpmsg drivers does not have a primary endpoint to tie
their existence upon, but wishes to create and destroy endpoints
dynamically, e.g. based on user interactions.

Allow rpmsg drivers to omit a driver callback to signal this case and
make the probe path not create a primary endpoint in this case.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/rpmsg_core.c